Image Color Palette Extractor
Drop an image to pull out its main colours. Choose how many you want, see each colour’s HEX, RGB and HSL values and how much of the image it covers, and export the palette. The image never leaves your device.
1. Image
Local · not uploadedDrop an image here
or click to browse
2. Palette
sRGB valuesColours are averages of the decoded image pixels as your browser displays them (sRGB). They are not a colour-managed measurement.
About Image Color Palette Extractor
Image Color Palette Extractor finds the main colours in a photo, logo or illustration. It samples the image in your browser, ignores transparent pixels, groups similar colours with a k-means algorithm in a perceptual colour space, and reports each colour’s HEX, RGB and HSL values with the share of the image it covers. Palettes can be copied or downloaded as JSON, CSS variables or plain text.
Designers and developers often need colours that match an existing image — for a website theme, a presentation or a brand mood board. Picking them by hand with an eyedropper is slow and inconsistent; extracting a palette gives representative colours in seconds, ready to paste into CSS or design tools.
Step by step
- Drop an image onto the upload area or click to choose one.
- Choose how many colours you want: 3, 5, 8 or 12.
- Sort the palette by share, hue or lightness.
- Copy a single colour with its Copy button, using the HEX, RGB or HSL format you picked.
- Copy the whole palette, or download it as JSON, CSS variables or TXT.
What it offers
- Palette sizes of 3, 5, 8 or 12 colours
- HEX, RGB and HSL values for every colour
- Share of the visible image for each colour
- Proportional palette preview bar
- Transparent pixels excluded
- Copy individual colours or the whole palette
- JSON, CSS variables (--palette-color-1 …) and TXT downloads
- Deterministic results for the same image and settings
Tips for best results
- Use a reasonably sharp image; heavy noise or JPEG artefacts can add muddy in-between colours.
- Try 5 colours for a theme and 8–12 to capture accents and details.
- Check text and background combinations with a contrast checker before using them.
- Crop the image first if you only want colours from one part of it.
- Treat the values as screen colours (sRGB), not print or colour-managed measurements.
Why people use it
Fast
A full palette in seconds instead of picking colours by hand.
Ready to use
Copy-ready HEX, RGB, HSL and CSS variables.
Consistent
The same image always gives the same palette.
Private
The image is analysed in your browser and never uploaded.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.