Skip to content
konverton

Color Palette Extractor

Colour paletteChoose images · JPG, PNG, WebP, HEIC and more

Nothing uploaded, all in your browser

  • Nothing is uploaded
  • Free, no sign-up
  • Check it in your Network tab

The short answer

Add a photo or logo and Konverton shows its five main colours as swatches with HEX codes, most common first. Tap a colour to copy it as HEX, RGB or a CSS variable, or save all five as a palette picture. It runs in your browser, so the image is not uploaded.

How it works

  1. 01

    Add your image

    Drop a JPG, PNG, WebP, AVIF, GIF or HEIC picture, or press Choose images. You can add several, and each one gets its own palette.

  2. 02

    Read the colours

    Colour palette is already selected. The swatches appear under your picture within a moment, most common colour first.

  3. 03

    Copy what you need

    Pick HEX, RGB or CSS variables, then tap one swatch to copy that colour, or press Copy all for the whole list.

  4. 04

    Save the palette picture

    Press Save palette image to get a PNG with the colours and their codes. With several pictures you get one PNG each, in a ZIP.

The details

Facts and limits
Colours foundUp to 5, most common first
InputJPG, PNG, WebP, AVIF, GIF (first frame) and HEIC photos
Copy formatsHEX (#285AEF), RGB (rgb(40, 90, 239)) and CSS variables
Palette picturePNG, 320 pixels wide per colour and 420 pixels tall, named like photo-palette.png
Transparent areasIgnored, so a logo on a clear background gives the logo's colours
Several filesYes, one palette picture each, saved as a ZIP
Bytes uploaded0. The picture stays in your browser

How the main colours are chosen

A photo can hold millions of different colours, so a list of the dominant colors has to group similar ones. Konverton shrinks a copy of your picture to at most 96 pixels on its longest side, which is plenty to judge colour and keeps it fast, then splits the pixels into groups with the median cut method and averages each group. Colours that look almost the same are merged, so you get clearly different shades instead of five blues. The result is ordered by how much of the picture each colour covers.

Why you may get fewer than five colours

The tool only keeps colours that are clearly different from each other. A plain white screenshot gives one colour, and a simple two-colour logo gives two or three. That is the correct answer, not an error. A picture that is fully transparent, or a file that is damaged, has no colours to read, and the page says so in plain words instead of showing an empty palette.

Using the codes in design and code

HEX codes work in design tools, CSS and most website builders. RGB is handy for apps and documents that ask for red, green and blue values. The CSS variables option copies a ready :root block with --color-1 to --color-5, so you can paste it straight into a stylesheet. The palette picture is useful for mood boards, brand notes and sharing a colour scheme with someone who does not need the original.

What it does not do

These are the main colours of the whole picture, not a pixel-exact reading from one spot, so it does not replace an eyedropper for matching a single point. Colours are read as they are stored, without colour-profile conversion, so a wide-gamut photo can look slightly different on another screen. For an animated GIF only the first frame is used. Your picture is decoded on your own device and never sent anywhere.

Questions

How do I get the colours from an image?

Add the image and the main colours appear as swatches with HEX codes. Tap one to copy it, or press Copy all.

How many colours does it find?

Up to five. A simple image can have fewer, because colours that look alike are merged into one.

Can I copy RGB values or CSS variables?

Yes. Choose HEX, RGB or CSS variables under Copy as before you copy. CSS variables come as a :root block with --color-1 to --color-5.

Does it work with a logo on a transparent background?

Yes. Transparent pixels are ignored, so you get the logo's own colours, not white or black from the empty area.

Is my picture uploaded?

No. The colours are worked out in your browser and the picture is never sent to a server.

Last reviewed