Color Palette Extractor

Extract a color palette from any image — HEX, RGB, copy-ready swatches.

100% Free No signup Private — runs in your browser

Upload an image and get its dominant colors as a ready-to-use palette — perfect for brand boards, design mockups and social posts. Your images never leave your browser.

Color Palette Extractor

Upload a photo or logo and pull out its dominant colors — with HEX and RGB values you can copy straight into your design, plus a ready-made CSS file.

Palette size
6

Changing the size re-extracts the palette from the same image. Fewer colors gives the broadest tones; more colors surfaces smaller accents.

How it works: the image is drawn onto a canvas and downsampled for speed, then a median-cut quantization groups the sampled pixels — it repeatedly splits the color group with the widest red, green or blue range at its median — and each swatch is then refined to the average of the pixels nearest to it, so flat areas of color come out clean. Colors are sorted by how much of the image they cover. Honest limits: these are sampled approximations from the image pixels, not a colorimeter reading — compression, transparency and tiny details shift the result slightly, and fully transparent pixels are ignored. Private — your image never leaves your device; everything runs in your browser.

How to use

  1. Upload an image.
  2. Choose how many colors to extract (3–12).
  3. Copy any HEX or RGB value with one click.
  4. Download the palette as a PNG strip or copy the CSS variables.

Frequently asked questions

How are the colors chosen?
The tool samples the image's pixels and groups similar colors together, then shows the most common color families — so busy photos give a broader palette than flat illustrations.
Can I use the palette in my designs?
Yes. Every value shown is a plain HEX or RGB code, free to use in any design tool, website or brand sheet.

Related guides

More Image tools

View all →