Free Online Image Color Extractor
Upload a photo or graphic and get its main colours as HEX codes. Hover over the image to read any single pixel, and copy the palette as CSS variables or JSON. Your image stays in your browser.
How to Use Image Color Extractor?
Upload Image
Drop or browse any photo, screenshot, brand graphic, or illustration.
Inspect Dominant Palette
Review auto-quantized dominant color swatches and click any swatch to copy HEX.
Eyedropper & Export
Hover to sample individual pixels or export as CSS Variables / JSON array.
How to get a colour palette from a photo
Designers and developers often start a colour scheme from a photo or a logo. This tool shows you the colours that appear most in the image, so you can copy their HEX codes straight into your CSS or design file.
How the palette is picked
A photo can have millions of slightly different colours. To make that manageable, the tool shrinks the image to 100 by 100 pixels, rounds every colour to the nearest step so that near-identical shades fall into the same group, counts how many pixels each group has, and shows the eight biggest groups. The result is an approximation. If you need the exact colour at one spot, such as a logo's brand colour, hover over that spot and read the HEX value in the eyedropper box.
Using the result
Click a swatch to copy its HEX code. Use Copy CSS Vars to get a ready-made :root block, or Copy JSON for a list of the HEX codes. Pair the palette with the Color Converter to check contrast and convert between HEX, RGB and HSL.
Frequently Asked Questions
How does dominant color extraction work from photos?
The image is shrunk to a small copy, similar colours are grouped into bins, and the bins that hold the most pixels become the palette. You get up to eight colours.
Are my uploaded photos or graphics sent to your servers?
No. The palette and the eyedropper both work in your browser with the HTML5 Canvas. The image is not sent to our server.