Color Palette Extractor from Image
Extract the most prominent colours from an image with HEX, RGB, HSL and share percentages, sort them, and copy them as a list, CSS variables or JSON.
Shows the most prominent colours in the image. Transparent pixels are ignored.
About Color Palette Extractor from Image
The Colour Palette Extractor pulls the main colours out of a photo or a logo and tells you how much of the picture each one covers. Copy them as a list, as CSS variables or as JSON.
Your files stay on your device
The image is analysed in your browser. Nothing is uploaded.
Choose how many colours
The slider starts at 6. Four to eight colours is a good start for brand and design work; photos with many tones may need more.
Sort and copy
Every colour comes with HEX, RGB and HSL values and its share of the picture. Sort by share and copy in the format your project needs.
Logos with transparent backgrounds
Transparent pixels are ignored, so you get the colours of the logo, not the empty space.
Tiny extra colours
Colours under about 1 percent are often blends from edges and smoothing, not real design colours. Ignore them.
Before you use the palette
Check text and background pairs with the Contrast Checker, and remember JPG compression can shift colours slightly. To build a matching palette from one colour, use the Color Palette Generator.
How to use Color Palette Extractor from Image
- Drop your image on the page or click to choose it.
- Set the number of colours with the slider and choose the sort order.
- Read the HEX, RGB, HSL and share of each colour.
- Press Copy HEX list, CSS variables, JSON or Palette PNG.
Help & FAQ
What does the Colour Palette Extractor do?
It finds the most prominent colours in an image and lists them with HEX, RGB, HSL and the share of the picture each covers.
How many colours can we extract?
You choose with a slider. The default is 6.
How accurate are the percentages?
They are close but not exact. In the test, true shares of 50, 30 and 20 percent were reported as 49.6, 29.3 and 19.5 percent.
Why do we see colours that are not in our image?
If you ask for more colours than the image has, the extra ones can be blends. In the test, three small entries of under one percent were mixes.
Are transparent pixels counted?
No. The page says transparent pixels are ignored.
How can we sort the colours?
By most used first, by hue or by lightness.
What can we copy?
A HEX list, CSS variables, JSON or a palette picture.
Which image types can we use?
JPG, PNG, WebP, GIF, BMP and SVG.
Will the colours match our brand exactly?
Not always. Compression and scaling change colours slightly, so use your original brand files for exact values.
Are the colours accessible together?
Not automatically. Check text and background pairs with the Contrast Checker.
Is our image uploaded?
No. It is analysed in your browser. In a test, only the site's small analytics calls were made.