Skip to content
Run here 100% in your browser, no upload, no login

Color Extractor

Pull the 5 to 8 dominant colors out of any image, with their share.

HEX list

Click a swatch to copy its HEX.

The image is decoded and sampled on a canvas in your browser. It is never uploaded.

How to use it

  1. Choose an image. It is decoded in the browser and scaled to a long side of 320 pixels for sampling.
  2. Pick how many colors you want, from 5 to 8.
  3. Click Extract palette. Each swatch shows its HEX, its RGB values and the share of sampled pixels it covers.
  4. Click any swatch to copy that single HEX, or copy the whole list with Copy.
  5. Use Clear to reset the panel and pick another image.

Common use cases

Why it stays private

The file is read into memory, drawn on a canvas and sampled there. No request is made and nothing is stored, so photos of people, receipts or unreleased work stay on your device.

FAQ

Q: Why do the shares not add up to 100 percent? A: Each share is the percentage of all sampled pixels, and an image usually contains more hue groups than the 5 to 8 you asked for. The remainder is spread across the colors that did not make the list.

Q: Are the colors exact pixel values from the image? A: No. Each swatch is the weighted average of one hue bucket, which removes sensor noise and gives a color you can actually use.

Q: How are grayscale images handled? A: Near-neutral colors are grouped separately into a dark group and a light group, so a black and white photo returns grays instead of scattered hues.

Q: Does transparency affect the result? A: Pixels with low alpha are skipped, so transparent padding in a PNG does not turn into a color.

Your data stays on this device

Color Extractor runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.

Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.