Color Palette Extractor
Upload any image and instantly extract its dominant colours as HEX, RGB, and HSL codes — one click to copy each. Free, nothing uploaded.
Drop an image here or click to browse
PNG, JPG, WebP — processed in your browser, nothing uploaded
Source Image
Number of Colours
More colours reveals subtler tones. Re-extracts automatically.
Share this free tool
☕Find this tool useful? Help keep it free!
How to use this tool
- 1Drop your image into the box or click to browse. Any photo, screenshot, logo, or artwork works.
- 2The tool analyses the image and extracts the most dominant colours using a clustering algorithm.
- 3Click the copy icon next to any HEX, RGB, or HSL value to copy it to your clipboard. Use "Copy All HEX Codes" to grab the whole palette at once.
- 4Adjust the number of colours if you want more subtle tones or just the key colours. The palette re-extracts automatically.
Frequently Asked Questions
The tool samples pixels from your image and uses a k-means clustering algorithm to group similar colours together. The centre of each cluster represents the dominant colour in that group. This gives you the most representative colours in the image rather than just the most common individual pixel values.
No. All processing happens in your browser using the HTML5 Canvas API. Your images never leave your device.
HEX is a six-character code used in HTML and CSS (e.g. #ff6b35). RGB defines a colour by its red, green, and blue components on a 0-255 scale. HSL defines a colour by its hue (the colour wheel angle), saturation (intensity), and lightness — useful for programmatic adjustments like making a colour lighter or more muted.
6 is a good default for most images. Use 4 for very simple graphics or logos. Use 8-10 for complex photographs where you want to capture subtle tones. More colours will reveal finer distinctions but some may look very similar.
Extracted palettes are useful for matching brand colours from a logo or photo, building a colour scheme for a website or design project, identifying the mood or tone of an image, or creating derivative artwork that harmonises with an existing visual.