cv.cm
All tools

Image color palette

The image is read in this tab. Nothing is uploaded.

Add an image to see its main colors.

How to use this tool

Pull a color palette out of any picture and copy the HEX codes, without uploading it.

  1. Add an image

    Drop a photo or screenshot on the left, click to choose one, or paste it.

  2. Set the number of colors

    Slide from 2 to 12. The palette is recalculated straight away and sorted from the most common color.

  3. Copy the colors

    Click a swatch to copy its HEX code, or Copy all HEX for the whole palette.

FAQ

How does it pick the colors?

It shrinks a copy of the image, groups similar pixels with median cut, then refines the groups with a few rounds of k-means. Each color shows its share of the picture.

Is my image uploaded?

No. The file is decoded and analysed in this tab with a canvas. Nothing is sent and analytics are off on this page.

How many colors can I get?

From 2 to 12. A flat logo may return fewer, because identical colors are merged.

How do I copy a color?

Click a swatch to copy its HEX code, or use Copy all for the whole palette, one code per line.

Are transparent pixels counted?

No. Pixels that are more than half transparent are skipped, so a PNG cut-out gives the colors of the subject.