How to use it
- 1
Choose a JPEG, PNG, WebP, or AVIF file.
- 2
Select four to eight palette colors.
- 3
Extract the palette and copy the HEX values you need.
What the tool can do
- Deterministic five-bit RGB quantization of a downsampled image.
- HEX, RGB, count, and percentage of sampled pixels.
- Transparent pixels are skipped; partial transparency is composited onto white.
Common use cases
- Quickly getting HEX values from a reference image.
- Preparing a draft UI palette.
- Manually comparing dominant colors across images.
How it works inside
The sample's longest side is limited to 160 pixels.
Equal-frequency colors are sorted by HEX for stable output.
Questions and answers
How can I extract a photo's main colours?
Choose an image and select four to eight colours. The tool analyses a downsampled copy in the browser and shows selected colours with HEX and RGB codes. Copy the code you need for your design.
Why is a small coloured detail missing from the palette?
The palette contains a limited set of colours from a smaller sample. Small details and similar shades may not appear separately. Use an image editor's colour picker when you need an exact colour from a particular detail.
