colour palette extractor

The colours in your image
counted, not guessed

Drop an image and see which colours actually cover it, each with the share of the pixels it holds and what text will read on it. Your image stays beside the swatches so you can judge them against it. It runs in your browser — the file never leaves your device.

how these were counted

Your image is redrawn into a 128 by 128 square and every pixel in it is read. Colours are grouped by keeping 32 levels of each channel, so shades no eye separates land together, and pixels below an alpha of 48 are skipped as padding rather than picture. The 6 largest groups are shown, biggest first.

That is one method, and a different one gives different swatches. What is fixed is what the shares mean: each is the count of pixels in that group over the count of pixels read. Nothing here decides which of these is your colour — that is a judgement about a brand, and this page has only counted a picture.

Drop an image here to read its colours

PNG, JPG and WebP. Not SVG — this page reads pixels through your browser’s own decoder, and a vector has none until something draws it.

the colours

What covers this image

Nothing read yet. Drop an image above and its colours appear here, with your file beside them.

Questions

How are the colours chosen?

The page names its method rather than leaving you to guess it, and shows your image beside the swatches so the grouping can be judged against the picture. A palette you cannot check against the thing it came from is a claim rather than a measurement.

Why does it sometimes say that no colour dominates?

Because sometimes none does. When the shares are close, naming the largest group would present a rounding difference as a finding — so it says the picture has no dominant colour instead, which is the honest answer and occasionally the useful one.

What is the contrast figure beside each swatch?

What text would have on that colour. It is there because a palette is usually picked in order to put words on it, and a colour that reads beautifully as a swatch can be unusable behind a sentence.