LocalExcelTool
Get started

Color Palette Extractor

Extract 8 dominant colors (hex + share) from an image.

What is Color Palette Extractor

The Color Palette Extractor pulls the eight dominant colors out of an uploaded image, listing each as a hex code with its share of the picture. Internally it downsamples to 64×64 and quantizes into an 8×8×8 RGB bucket grid. Great for building color schemes from photos or checking a design's mood. Runs in your browser; the file never leaves your device (5 MB limit).

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Size limit
25 MB
Offline
Works with the network disconnected

Dominant colour is a statistical claim

Pixels are sampled and grouped, and the largest clusters are reported with their share. The sampling step matters: averaging every pixel of a photo produces a muddy grey-brown that appears nowhere in the image, which is why cluster-based extraction rather than a mean is what a palette tool must do.

Share percentages are worth reading. A palette where the top colour is 40% is a coherent image; one where five colours are each 8% is a busy image where no single colour will work as a theme.

What a palette does not tell you

It gives you colours present, not colours usable. A dominant pale pastel fails as text on white; a vivid accent may occupy 2% of the pixels and be the only usable brand colour. Ranking by area and ranking by usefulness are different questions.

Perceived colour also drifts in small areas: a 20×20 patch of colour is judged differently from the same colour across a whole wall. Extracted values are accurate samples and poor previews of how the colour will read at scale.

From palette to system

The useful next step is contrast, not more swatches. Each candidate needs its ratio measured against the actual background it will sit on, and the ones that fail are excluded regardless of how well they represent the photo.

For a generated theme, lightness variation matters more than hue: a single hue at four lightness levels gives a coherent UI, while four arbitrary extracted colours give a palette that cannot express states like hover, disabled or muted without inventing new values.

How to use

  1. 1.Choose an image file
  2. 2.Run to extract the palette
  3. 3.Copy the hex codes into your design

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for free25 MB per file, unlimited runsA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveRe-encoding loses a little quality; metadata such as EXIF is strippedThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

How does extraction work?

The image is downsampled to 64×64, quantized into 512 RGB buckets, and the top 8 buckets are averaged into the colors you see.

What about transparency?

Pixels with alpha below 50% are excluded from the calculation.

What this kind of conversion cannot keep

Image work happens on a canvas: the file is decoded, drawn, re-encoded and handed back as a download. Nothing is uploaded, so a 20 MB photo costs you nothing but a few seconds. Re-encoding always loses a little quality — that is true of every tool, including desktop software.

More in Image