Click a swatch to copy its HEX
Drop an image here
or click to choose · or paste (Ctrl/Cmd + V)
processed in your browser · never uploaded
Extract the colors used in a photo, illustration, or reference image as a usable color palette. Load an image and a median-cut quantization algorithm reduces it to N representative colors, listing each one's HEX code, RGB value, and approximate area share (how much of the image that color covers). Click a swatch to copy its HEX to the clipboard, or use "Copy all HEX" to grab the whole palette as a newline-separated list. You can save the palette as a .gpl file (the GIMP palette format, which Krita, Inkscape, Photoshop and many other apps can import) or as a PNG strip of the colors side by side, ready to drop into a design comp, slide deck, or style guide. Dragging the color-count slider re-extracts instantly between 2 and 16 colors without reloading the image, so you can move between "just the 3 main colors" and "show me a finer 12-color breakdown." The algorithm is deterministic — no randomness — so the same image and color count always produce the same palette. Transparent pixels are excluded from the analysis, so cutout assets aren't skewed by their transparent background. Your image is your work or research, so this tool uploads nothing — loading, extracting, copying, and saving all happen locally in your browser.
How to use
- Drop the image you want a palette from (or click to choose, or paste with Ctrl/Cmd+V).
- Adjust the color-count slider (2–16) to set how many colors to extract — it re-extracts instantly without reloading the image.
- Click a swatch to copy its HEX, or use "Copy all HEX," "Download .gpl," or "Download PNG" to export the palette.
FAQ
Are my images uploaded to a server?
No. Loading the image, extracting the colors, and saving the palette all happen in your browser. Nothing is uploaded, stored, or sent anywhere — everything is processed only on your device.
What does the area share (%) mean?
It's the approximate fraction of the analyzed pixels that fell into that color's cluster. A larger share means the color covers more of the image and is more of a dominant/theme color. To stay fast, large images are sampled down before analysis, so it's an estimate rather than an exact pixel count.
How does changing the color count affect the result?
More colors split similar tones further apart, surfacing midtones and accent colors; fewer colors collapse the image to just its main theme colors. The slider re-extracts instantly without reloading, so you can dial in the granularity you need.
What can I do with the .gpl file?
.gpl is the GIMP palette format, which Krita, Inkscape, and many other apps can import directly. Save it into your app's palette folder to reuse the extracted colors as swatches. You can also copy the HEX values straight into CSS or a design tool.
Does it work on images with transparency?
Yes. Nearly transparent pixels are excluded from the analysis, so a transparent (cutout) PNG isn't skewed by its empty background — the palette is built from the subject's colors only.
Will the same image always give the same palette?
Yes. The algorithm (median cut) is deterministic with no randomness, so the same image and color count always produce the same set of representative colors.