Nothing you open here is ever uploaded

Get a colour palette from an image

Colours here are counted, not guessed at. Every pixel is sorted into one of 4,096 groups of similar shades, the groups are ranked by how many pixels fell into them, and the largest come back, between three and twelve of them, as you choose. No model is involved and nothing is inferred about mood or style.

This page loads no libraries at all. The work is done by the browser itself. Your file is read on your own machine and never sent anywhere. Open your browser’s network tab and watch while you use it.

Questions

Are these hex codes actually in my photo?

Not exactly. Each group reports the average of the pixels in it, so the code you copy stands for an area rather than a single pixel. When you need the true value of one spot, use the eyedropper in an image editor.

Why do I get two swatches that look almost the same?

Because the photo holds several close shades and each one falls into a group of its own. Asking for fewer colours does not merge them. You get a shorter list off the top of the same ranking, so a near-duplicate can still be in it.

Does it read every pixel of my image?

Not on a large one. Anything longer than 160 pixels on its longest side is scaled down to that first, so the result reflects large areas. A thin line or a small bright detail can be averaged away at that size and never reach the palette.

What happens to transparent areas?

Pixels less than about half opaque are skipped, so a logo on a transparent background gives you the colours of the logo itself. Nothing is painted behind the image, so no white or black is counted in from underneath.

Other images tools

Everything here is free and works the same way, in your browser.

New tools, once in a while

A new DeskKit tool lands every week or two. Leave an address to hear about it. Nothing else is ever sent, and one click removes you.