What is an image colour palette extractor?
A colour palette extractor finds the dominant colours in an image and gives you their codes. Designers use it to build a colour scheme from a mood photo, match a website to a logo, or keep a social feed's colours consistent with a hero image.
Choose an image and how many colours you want. Each swatch shows its hex, RGB and HSL values and how much of the image it covers. Copy codes one at a time, export the set as CSS, Tailwind or JSON, or download a swatch card.
How to use the Image colour palette extractor
1.Choose an image
A photo, illustration, logo or screenshot.
2.Pick how many colours
From 2 to 16; the palette updates instantly.
3.Copy or export
Copy single hex codes, or the full palette as CSS variables, Tailwind or JSON.
Example: a palette from a beach photo
A sunset photo of a beach:
- Colours
- 5
- Largest
- #1f3b5c deep sea blue, 34%
- Others
- sand, coral, sky and a dark rock tone
- Export
- CSS variables --palette-1 to --palette-5
Five ready-to-use colours that make a website or slide deck feel like the photo.
How the colours are chosen
The image is sampled and grouped into clusters of similar colours, and each cluster's average becomes one swatch. The coverage bar shows how much of the picture each colour accounts for, largest first, which helps tell main colours from accents.
Transparent pixels are ignored, so a logo saved as a transparent PNG gives only its own colours. Asking for more colours brings out smaller accents such as a red sign in a mostly green landscape.
Frequently asked questions
Why don't I see the exact colour I picked in an editor?
Each swatch is an average of similar pixels. Use an eyedropper colour picker for one exact pixel.
How many colours should I extract?
5 or 6 for a brand palette; 10 or more to catch small accent colours.
Can I download the palette?
Yes. Download a swatches PNG, or copy CSS variables, Tailwind config or JSON.
Is my image uploaded?
No. Colours are found in your browser.
Related tools
Colour palette generator
Generate harmonious 5-colour palettes and 50–950 shade scales.
Colour Picker
Pick a colour and get its codes, tints, shades and harmonies.
Colour Contrast Checker (WCAG)
Check text and background colours against WCAG AA and AAA.
Favicon Generator
Make favicon.ico, Apple touch and Android icons from a letter or image.
Image to Text (OCR)
Extract text from screenshots, scans and photos in English, Hindi and more.
Thumbmark maker
Turn a photo of your thumb into a clean, transparent thumbprint PNG.