Colour Palette from an Image

Pull the colours a photo is actually made of, as HEX codes you can paste into a design. Up to ten swatches, counted from a downscaled copy so the palette reflects the picture rather than one noisy pixel.

Colour Palette from an Image

Drop an image

Or choose a file from your device

JPG, PNG, WebP, AVIF, GIF or HEIC · one image · max 40 MB

Pixels are read in this tab — the image is never uploaded.

Three steps — nothing to install

  1. Add the image

    A photo, a screenshot or a design. Colour is counted from visible pixels only.

  2. Choose how many colours

    Four for a tight palette, eight or ten when the image has several distinct areas.

  3. Copy what you need

    Click a swatch for its HEX, or copy the whole list at once.

How the colours are chosen

The image is reduced to about 240 px on its long edge — enough to keep the colour story, small enough that millions of pixels do not drown the count. Each pixel is then grouped into a coarse colour bucket, and the buckets are ranked by how much of the picture they cover. Nearby buckets are merged so the palette does not end up with ten nearly identical blues.

That is why the result feels like the photo rather than like a random sample of it. It is not a perceptual palette generator: it does not choose colours that look good together, and it does not know about brand guidelines. It reports what is there.

The percentage next to each swatch

The share is the approximate portion of visible pixels in that bucket. A swatch at 40% is the background; one at 3% is an accent. A palette with one huge share and several tiny ones is normal for a portrait against a plain wall.

Shares do not add up to exactly 100%: merged buckets and the transparency filter leave a small remainder. Treat them as relative weights, not as a precise measurement.

Using the palette

A quick way to start: take the two largest swatches as background and text, then use a smaller, more saturated one as the accent. Check contrast before putting text on a colour — a mid-tone that looks pleasant as a block can fail badly under small type.

The image is decoded and counted in this tab; nothing is uploaded and no palette is stored. Reloading the page clears it.

Frequently asked questions

How many colours can I extract?Between 4 and 10. More than that and the swatches stop being distinguishable on screen.
Why are two swatches almost identical?They are separate buckets that survived the merge distance. Pick a smaller colour count for a tighter palette.
Is this a colour-scheme generator?No. It extracts the colours present in the image; it does not invent a matching scheme or check accessibility.
Does it include transparent areas?No. Fully transparent pixels are skipped, so a logo's empty background does not become a colour.
Is my image uploaded?No. The palette is counted in this browser tab.