Skip to content
QZTools

Extract the color palette of an image

Find out which colors dominate a photo, logo or illustration and use them in your designs.

Your files are processed directly in your browser. They are never uploaded to a server.

How to extract the color palette of an image

  1. 1

    Add an image.

  2. 2

    Choose how many colors you want (2 to 12).

  3. 3

    Copy the codes or export the palette as CSS, JSON or PNG.

About this tool

Colors are grouped by similarity (k-means) and sorted by how much of the image they cover.

Transparent areas are ignored, so it works well with PNG logos.

Analysis happens in your browser; the image is never uploaded.

Frequently asked questions

Why is a small but striking color missing?

Colors are sorted by area. Increase the number of colors to reveal minor ones.

Is the result always the same?

Yes, for the same image and number of colors.

Related tools

More Images tools