Skip to content
Changelog
new toolcolorimages

Palette Extractor

v1.0

The Palette Extractor takes an image and returns the three to eight colors it is made of. Colors are grouped by how similar they look, so near-identical shades of one wall don't take three slots and a small vivid accent isn't ignored.

Large images are scaled down to a longest edge of 160 pixels for analysis, which doesn't change the dominant colors and keeps it fast. Results are repeatable: the same image at the same count always gives the same palette, and only changing the count changes the answer.

Hover any swatch and the preview dims everything that doesn't belong to that color, so you can see where in the picture it comes from. The preview shows the scaled-down image the analysis used, so it looks pixelated.

Each swatch shows its value in the syntax you've selected, the nearest CSS color name, and its contrast ratio against whichever of black or white reads better on it, so you can see which colors could carry text. Swatches animate in, and changing the count grows or shrinks the set in place. When you drag the count slider, the previous palette stays on screen while the new one computes, with a small spinner beside the count.

Export the palette as CSS custom properties, JSON or plain text. "Score this palette" sends the colors to the Palette Scorer for a color-blindness and contrast check, and "Save to Collection" files the palette into the Palette Collection, named after the image. Saving again after a tweak updates the entry.

Your image is never uploaded. It is read in your browser and discarded when you replace it, so the tool works without a network connection.

All changes