Free · Instant · Nothing uploaded

Image color palette extractor

Drop in a photo and get its dominant colors as hex codes — ready to copy or export as CSS variables.

Drop a photo here or browse

JPG · PNG · WebP — your photo stays on your device

🔒 Your photo is analyzed entirely on your device — never uploaded.

How to extract a color palette from a photo

Great for matching brand colors to a photo, building a mood board, or picking a UI theme from an image.

🖼️

1. Drop a photo

Any JPG, PNG or WebP — nothing is uploaded.

🎛️

2. Pick a color count

4 to 8 swatches, sorted from most to least dominant.

📋

3. Copy & use

Click any swatch for its hex, or export the whole palette.

Colors are found with median-cut quantization — the same family of algorithm behind classic image-palette tools — rather than a simple pixel average, so the result reflects the photo's real color groups instead of one muddy blend. Everything runs in your browser on a downscaled copy of the image for speed; your original photo is never uploaded. For palettes built from a base color instead of a photo, try the Color Palette Generator.

Image color palette FAQ

How are the colors picked?

Using median-cut color quantization — pixels are recursively split by their widest color range, and each group's average becomes one swatch.

Is my photo uploaded anywhere?

No — the image is decoded and analyzed entirely in your browser using a canvas.

How many colors can I extract?

Choose 4, 5, 6 or 8 dominant colors, sorted from most to least prominent.