Extract Colors

Extract all colors from image free.

Quantizes sampled pixels into the most frequent color bins and exports a JSON palette.

Local processing · 25 MB per file · 100 MB total · up to 200 PDF pages

No file selected

What this tool does

Sample image pixels to identify prominent colors for a palette. Results depend on sampling and are not a complete color inventory.

How to use it

  1. Select one source file (image/png,image/jpeg,image/webp,image/gif,image/svg+xml,image/bmp).
  2. Set number of colors (initial value: 8).
  3. Choose Process, inspect the result, then use the download control. A reported error means no successful output was produced.

Limits and result checks

Quantizes sampled pixels into the most frequent color bins and exports a JSON palette.

Common questions

Which number of colors settings affect extract image colors?

Number of colors: enter a finite numeric value from 1 to 32. Quantizes sampled pixels into the most frequent color bins and exports a JSON palette.

Where can I read the data-handling details for Extract Colors?

Inputs are processed in browser memory and are not uploaded by this plugin. Generated downloads remain on your device. The site privacy policy explains memory cleanup and hosting logs.

File processing and privacy · Report a problem

What a palette from an image is for

Every image has a colour story, and extracting it turns that story into usable data: the hex codes a designer needs to match a website to a photograph, extend a brand from a logo, build a presentation around a hero image, or paint a room in the colours of a picture they love. Instead of eyeballing “some kind of teal”, you get the actual values — the difference between a design that harmonises with the image and one that nearly does.

Reading a palette like a designer

The extractor reports the image’s colours roughly by dominance. The top colours are the image’s foundations — backgrounds, skies, walls — useful for page backgrounds and large areas. The small-percentage colours at the end are the accents: the red door in a grey street scene. Those carry the image’s character and are the ones to use sparingly for buttons, highlights and details. A working palette usually takes two or three foundation colours and one accent; using all ten extracted colours at full strength recreates the photograph, not a design.

Can I copy the exact hex codes into my design tool?

Yes — that is the point of the extraction. Hex codes are the common language of web and design software, so the values paste straight into CSS, design apps and presentation tools, and the colour you get is the colour that was measured.

Why do the colours look different on my screen and in print?

Screens make colour from light; print makes it from ink, and the two never match perfectly. Treat extracted hex values as exact for screens and as a strong starting point for print, where a proof print is the only honest check.

How many colours should I actually use?

Fewer than the tool gives you. Pick the dominant colour for foundations, a supporting tone, and one accent. Restraint is what makes the chosen colours look chosen; a palette is a shortlist, not an instruction to use everything.

How the palette is built

When you select an image and choose Process, the tool samples the image’s pixels and groups them into the most frequent colour bins. The result is a palette of the colours that actually dominate the picture, not a guess at what it contains. The number of colours you ask for sets how many bins the tool reports, starting from 8.

The result depends on sampling, which is worth understanding before you trust it. The tool reads a sample of pixels rather than counting every single one, so the palette is a faithful summary, not a complete inventory of every colour in the file. A colour that appears in only a handful of pixels may not make the list, and that is by design — the palette is meant to show what the image is made of, not to catalogue it.

Choosing how many colours to ask for

The number-of-colours setting accepts values from 1 to 32, and the right number depends on the job. For a design palette, ask for fewer — five to eight colours gives a shortlist you can actually use. For analysis, ask for more: twenty or thirty colours shows the full range of a photograph, including the small accents that give it character.

More is not always better. A palette of 32 colours from a simple logo will include near-duplicates and compression noise — shades that differ by a digit or two and mean nothing. Start at the default of 8, look at the result, and only ask for more if the palette is missing a colour you can see clearly in the image.

Using the JSON palette

The tool exports the palette as a JSON file, which is a plain text format that design software, code editors and other tools can read. The values inside are hex codes — six-character codes like the ones used in CSS — so they paste straight into stylesheets, design apps and presentation tools, and the colour you get is the colour that was measured.

Keep the JSON file with the project it belongs to. It is the record of the palette: the exact values, not a screenshot of them, so nothing is lost to rounding or to someone retyping a code from memory.

Matching colours to a brand or a room

The most common use is matching a design to an image that already exists: a website to a photograph, a slide deck to a hero image, a poster to a product shot. Extract the palette, take the dominant colour for large areas, and use a smaller colour for accents. The design then harmonises with the image instead of fighting it.

The same trick works away from the screen. A palette from a favourite photograph gives paint colours for a room, fabric colours for a project, or a starting point for a brand that should feel like the picture it came from. In every case the discipline is the same: pick two or three colours from the palette and commit to them, rather than using everything the tool found.

When sampling can mislead you

Sampling can mislead in a few predictable ways. A photograph with a large sky will report the sky as the dominant colour, even though the subject you care about is the small figure below it. A gradient will report several near-identical shades as if they were different colours. A compressed JPEG can introduce colours that were never in the original scene.

The fix is to read the palette with your eyes open. Look at the image, look at the palette, and ask whether the list matches what you see. If a colour surprises you, find where it lives in the picture — it is usually a background, a reflection, or a compression artefact.

Common problems and fixes

If the tool reports an error, check the file type first. The accepted sources are PNG, JPEG, WebP, GIF, SVG and BMP images. A file in another format will not process, and a reported error means no successful output was produced. A very large image can also be slow, because the tool must sample a lot of pixels — give it a moment, and try a smaller copy if it stalls.

If the palette looks wrong — all grey, or colours you cannot find in the image — check the file itself. A mostly transparent PNG reports the colours of its visible pixels only, and a faded or washed-out source gives a faded palette. The extraction is only as good as the image it reads, so a clean source file is the first thing to check before blaming the result.

Your image stays on your device

The image you select is processed in browser memory and is not uploaded by this plugin. Sampling happens on your own device, and the JSON palette download stays on your computer. Nothing about your image is stored on the site.

That privacy is practical as well as reassuring: you can extract palettes from client work, unreleased designs or personal photographs without sending the files anywhere. Just keep the JSON exports organised, because the site keeps no copy for you to retrieve later.

Frequently asked questions

Which image formats can I use?

The tool accepts PNG, JPEG, WebP, GIF, SVG and BMP images. Select one source file, set the number of colours, and choose Process. A file in any other format will report an error and produce no output.

Why does the palette include a colour I barely see?

Because sampling counts pixels, not visual importance. A colour that covers a large dull area — a wall, a sky, a background — ranks high even though your eye ignores it. The small, vivid accent you noticed may rank low or not appear at all. The palette reports quantity; you decide importance.

Can I get the palette as a picture instead of JSON?

The tool exports a JSON palette, which holds the hex values as text. That format is made for copying values into design tools and stylesheets. If you need a visual swatch sheet, paste the hex codes into your design app and build the swatches there — the values are exact, so the colours will match.

Does the tool change my image?

No. It only reads a sample of the image’s pixels to measure the colours. The original file is untouched, and nothing is written back to it. The only thing the tool produces is the JSON palette download.

What is the difference between 8 colours and 32?

Eight colours gives a clean shortlist — the foundations and the main accents. Thirty-two gives finer detail, including small colour groups and near-duplicates. Use eight when you are choosing a design palette and more when you are studying what a photograph actually contains.

Can I extract colours from a photo of a painting?

Yes, any supported image works, and a photograph of artwork is no different from any other photograph. Remember that the palette reflects the photo, including its lighting and any colour shift from the camera, so it is a record of the photograph rather than of the painting itself.

Related tools