Color Palette Extractor
Upload a photo and get its dominant color plus a palette of 3 to 10 colors in HEX and RGB.
Image
Drag an image or click to select
Extracted Palette
Dominant Color
Palette
Select an image to extract colors
The tool groups an image's pixels by similarity and picks one representative color per group. The Color Thief 2.3.0 script, fetched from cdnjs, does the analysis inside the page. The photo is not stored.
The number of colors starts at 6 and can go from 3 to 10; moving the slider recalculates from the same image. The Dominant Color at the top is a single color worked out separately, so it stays put when you change the count. Clicking a swatch copies its HEX; RGB such as RGB(212,96,58) is shown too.
| Colors | What you get |
|---|---|
| 3 to 4 | Mostly the largest and highest-contrast colors |
| 5 to 6 | Main colors plus one or two mid tones |
| 8 to 10 | Similar shades split into many swatches |
Why a small color can go missing
Color Thief samples pixels at a fixed interval, places them in an RGB color box, and keeps splitting boxes until the count is reached, then averages each box. Wide areas of color are caught well; a small bright patch is easy to miss. A landscape that is mostly sky may return only blues and skip a red roof. Crop to that part to catch it.
Nearly transparent pixels and pixels with R, G and B all above 250 are skipped, so a product photo on white does not fill the palette with white. One image is read at a time, and a HEIC photo has to be converted to JPG or PNG first. For text colors, check the result in the contrast checker.