Color Palette Extractor
Nothing uploaded, all in your browser
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.
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.
Colour palette is already selected. The swatches appear under your picture within a moment, most common colour first.
Pick HEX, RGB or CSS variables, then tap one swatch to copy that colour, or press Copy all for the whole list.
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.
| Colours found | Up to 5, most common first |
|---|---|
| Input | JPG, PNG, WebP, AVIF, GIF (first frame) and HEIC photos |
| Copy formats | HEX (#285AEF), RGB (rgb(40, 90, 239)) and CSS variables |
| Palette picture | PNG, 320 pixels wide per colour and 420 pixels tall, named like photo-palette.png |
| Transparent areas | Ignored, so a logo on a clear background gives the logo's colours |
| Several files | Yes, one palette picture each, saved as a ZIP |
| Bytes uploaded | 0. The picture stays in your browser |
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.
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.
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.
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.
Add the image and the main colours appear as swatches with HEX codes. Tap one to copy it, or press Copy all.
Up to five. A simple image can have fewer, because colours that look alike are merged into one.
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.
Yes. Transparent pixels are ignored, so you get the logo's own colours, not white or black from the empty area.
No. The colours are worked out in your browser and the picture is never sent to a server.
Last reviewed