Image Color Extractor
Pull a colour palette out of any photo. The image is downscaled and sampled pixel-by-pixel, then a median-cut (or frequency-bucket) algorithm clusters similar colours to find the most dominant ones. Click any swatch to copy its HEX, RGB or HSL value — download the full palette as JSON.
How to use
- 1
Upload an image
Drag and drop a JPG, PNG, WebP, BMP or GIF. The image is downscaled to 256px on its longest side before sampling, so even huge files are processed instantly.
- 2
Tune the algorithm
Choose between median-cut (balanced, merges perceptually similar colours) or frequency-bucket (faster, favours large flat colour areas). Pick 6 to 10 output colours.
- 3
Copy any colour
Each swatch shows HEX, RGB and HSL. Click any value to copy it to your clipboard.
- 4
Download the palette
Export the full palette as a JSON file with HEX, RGB, HSL and population data for use in code or design tools.
Common use cases
- Build a brand palette from a hero photo or product shot.
- Find accent colours that complement a featured image.
- Generate consistent UI theming from a designer's mockup.
- Analyse the colour make-up of a competitor's screenshot.
Limitations
- The image is downscaled to 256px before sampling — tiny details may be missed.
- Fully transparent pixels are skipped, so palettes from PNGs with alpha may shift.
- Median-cut returns up to N colours, but very flat images may yield fewer distinct clusters.
- Animated GIFs use only the first frame.
Frequently asked questions
Related tools
View allBackground Remover
Remove image backgrounds with AI, locally in your browser.
Color Picker
Pick colours and convert between HEX, RGB, HSL.
Color Palette Generator
Generate harmonious colour palettes from a base colour.
Image Compressor
Compress JPG, PNG and WebP images locally in your browser.