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.
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.
Used Color Palette Extractor? Share how it went to help others.
About this tool
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.

Photo, logo or screenshot.
From 2 to 12, with their share.
Any colour in the picture.
HEX, RGB, HSL, CSS or Tailwind.
Sorted by their share of the picture.
Add any colour with a magnifier.
HEX, RGB and HSL, one tap to copy.
Contrast with white and black text.
From a picture to exact colour codes
Get the exact colours of a logo.
ExampleLeave out the white background.
Colours from a design screenshot.
ExampleCopy them as CSS variables.
A theme that matches a photo.
ExampleSix main colours.
Colours of a room you like.
ExampleTap the wall to pick it.
Describe a colour exactly.
ExampleHEX code for the listing.
Check text on a brand colour.
ExampleAa 4.5 or more passes.
Cleaner colours from any picture
Two to four colours usually match a logo exactly; photos need more.
A small accent may not be among the main colours; tap it to add it.
For text, use a colour with Aa 4.5 or more against the text colour.
The Tailwind code names colours palette-100, palette-200 and so on.
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
Featured on
Toolyconvert is listed on these product directories and launch platforms.