Image Color Palette Extractor

Upload a photo, logo or screenshot and get its main colours instantly, with the share of the image each colour covers.

Loading tool…
Your files stay on your device. Nothing is uploaded.

How to use the Image Color Palette Extractor

  1. Choose an image.
  2. Pick how many colours you want (4 to 12).
  3. Tap a swatch to copy its HEX code.
  4. Copy or download the palette as CSS variables, JSON or a PNG strip.

JPG, PNG or WebP up to 40 MB. Colours are averages of pixel groups, so tiny accents may merge into nearby colours.

Frequently asked questions

How are the colours chosen?

The image is sampled on your device and grouped with k-means clustering, so each swatch is the average of a group of similar pixels. Swatches are sorted by how much of the image they cover.

Why do I get fewer colours than I asked for?

If the image only contains a few distinct colours (for example a flat logo), the tool shows just those.

Are transparent areas counted?

No. Fully or mostly transparent pixels are ignored, so PNG logos give clean palettes.

Is my image uploaded?

No, everything runs in your browser.