Tools
Extract a Color Palette from an Image (HEX and RGB)
Load an image and choose how many colors you want. Copy each code with one tap.
Drop your file here or
Formats: JPG, PNG, WebP · Max 25.0 MB
🔒 Your files never leave your device: they're processed in this browser.
Usage tips
- With 5 or 6 colors you usually get a palette useful for design.
- The percentages show how much of the image each color groups.
- Transparent pixels are ignored.
- If a color doesn't convince you, try another number of colors.
The image is downscaled and colors are grouped with a median-cut algorithm refined with k-means, in your browser. The same image always gives the same palette.
Frequently asked questions
+How do I get the HEX of a color in an image?
Load the image: each palette color shows its HEX and RGB code with a copy button.
+Are the colors exact?
They're representative colors of pixel groups, not one specific pixel. They're computed on a downscaled version of the image.
+Is my image uploaded anywhere?
No. The calculation happens in your browser.