Skip to content
Image → Colours and codeImage tools

Color Palette Extractor

Find the main colours of a photo, logo or screenshot, with their share of the picture. Tap to pick more. HEX, RGB and HSL, text contrast, and code for CSS, SCSS, Tailwind or JSON.

Did this tool work for you?

Used Color Palette Extractor? Share how it went to help others.

About this tool

About Color Palette Extractor

Color Palette Extractor finds the main colours of a picture and gives you their codes. Designers use it to build a colour scheme from a photo or a mood board, developers to copy the exact colours of a logo or a screenshot into their style sheet, and anyone choosing paint, clothes or a slide theme to match a picture. Choose a picture and the tool groups its pixels into the number of colours you set, from 2 to 12. Each colour shows its share of the picture, so you can see which is the main colour and which are accents. The grouping always starts from the most common colour and gives the same result for the same picture. A logo on a white page can leave out the white background with one tick. To get a colour the tool did not choose, tap it on the picture: a magnifier shows the colour under your finger, and the colour is added to the list. For every colour you get the HEX code, the RGB value and the HSL value, each copied with one tap. Next to each colour, Aa shows how well white text and black text can be read on it, as a WCAG contrast ratio; 4.5 or more is easy to read for normal text, so you can tell at once whether a colour works as a button or a background. The whole palette can be copied as CSS variables, SCSS variables, a Tailwind colour scale or JSON, saved as a file, or downloaded as a PNG strip with the codes written under each colour. The picture is read in your browser and never uploaded.

Color Palette Extractor tool

When you need the colours of a picture

From a picture to exact colour codes

Brand colours

Get the exact colours of a logo.

ExampleLeave out the white background.

Building a website

Colours from a design screenshot.

ExampleCopy them as CSS variables.

Slides and posters

A theme that matches a photo.

ExampleSix main colours.

Paint and decor

Colours of a room you like.

ExampleTap the wall to pick it.

Product photos

Describe a colour exactly.

ExampleHEX code for the listing.

Readable buttons

Check text on a brand colour.

ExampleAa 4.5 or more passes.

Palette tips

Cleaner colours from any picture

Fewer colours for logos

Two to four colours usually match a logo exactly; photos need more.

Pick small details

A small accent may not be among the main colours; tap it to add it.

Check contrast

For text, use a colour with Aa 4.5 or more against the text colour.

Tailwind scale

The Tailwind code names colours palette-100, palette-200 and so on.

Mix your own colours

Pick and convert any colour.

Open Color Picker

Photo in HEIC?

Convert it to JPG first.

Open HEIC to JPG
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed Color Palette Extractor and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 26 November 2026

Answers and guidanceFrequently Asked Questions
How do I get the colours of an image?
Choose the picture. The main colours appear at once with their HEX, RGB and HSL codes. Tap the picture to add any other colour.
How many colours can it find?
From 2 to 12 main colours, set with the slider, plus up to 12 that you pick by tapping.
What does the percentage mean?
How much of the picture is closest to that colour. The colours are sorted from the biggest share to the smallest.
What are the Aa numbers?
The WCAG contrast ratio of white text and of black text on that colour. 4.5 or more is easy to read for normal text, 3 or more for large text.
Can I export the palette?
Yes, as CSS variables, SCSS variables, a Tailwind colour scale or JSON, copied or saved as a file, and as a PNG strip with the codes.
Why is white one of my colours?
Most logos sit on a white background. Tick Leave out white background to skip it.
Is my picture uploaded?
No. It is read in your browser and stays on your device.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.