ZapKit

Image colour palette extractor

Find the colours that make up a photo, logo or screenshot, with codes you can paste straight into a design or stylesheet.

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. 1.Choose an image

    A photo, illustration, logo or screenshot.

  2. 2.Pick how many colours

    From 2 to 16; the palette updates instantly.

  3. 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.

More Image tools