Image Color Palette Generator

Generate a palette from an image.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Choose an image and a palette size. You get a list of the main colours with hex, RGB and percentage coverage, skipping near-duplicates so the palette is varied.

How to use

1
Step 1
Choose an image.
2
Step 2
Set the number of colors.
3
Step 3
Press Process and copy the hex codes.

How it works

The image is shrunk to 64 x 64, colours are grouped into coarse buckets, and the most common groups become the palette. Colours that look almost the same are merged. Transparent pixels are ignored.

Worked example

Red and blue flag

Input
Half red, half blue image, 2 colors
Output
#ff0000 50%, #0000ff 50%
Walkthrough
Each half fills one bucket.

Limitations

  • Sampled from a small copy, so tiny details are missed.
  • Percentages are approximate.
  • Not perceptually clustered.

Questions

How many colors can I get?
2 to 12.
Are percentages exact?
They are approximate.
What about one dominant color?
Use Dominant Color Extractor.
Is it uploaded?
No. The palette is computed in your browser and the image stays on your device.

Features

  • Multiple colors
  • Hex and RGB
  • Coverage share
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • How are Images Compressed? JPEG In Depth

    Branch Education

    JPEG mechanics behind smaller web and social exports.

    Watch on YouTube
  • Responsive images - PWA Training

    Chrome for Developers

    How image weight affects real-device performance.

    Watch on YouTube