Color Palette Extractor
Drop in an image, get its dominant colors as ready-to-copy hex codes — with each color's share of the picture. Runs entirely in your browser. ← Workbench
Image
Drop an image here or paste one (Ctrl+V)
The image is read directly in your browser — nothing is uploaded.
Palette
How it works
The picture is divided into color groups using median-cut
quantization: the group with the widest color spread is repeatedly split
at its median until the requested count is reached, and each group's
average becomes one swatch. The share shown under each swatch is that
group's fraction of the sampled pixels.
Very large images are sampled down to at most 40,000 pixels before grouping — plenty for a faithful palette, and it keeps the page instant. Flat images with fewer distinct colors than you asked for simply return fewer swatches. Semi-transparent areas are placed over white first, so logos on transparency get their true look.
Need a single color's other notations? The Color Picker converts any hex to rgb and hsl, with a text-contrast check.