Color Picker from Image

Sample any pixel from an image, and extract its dominant palette automatically.

Drop an image here, or click to browse Read on your device, never uploaded

The image is decoded and processed by your own browser. It is never uploaded, and no copy of it exists anywhere but this tab, you can confirm that in the DevTools Network tab while you work.

Click anywhere on the image to sample

Choose an image to begin.


Sampled colour

Dominant coloursClick a swatch to copy
Recently sampled

Features

  • Click any pixel to sample its colour
  • HEX, RGB and HSL output
  • Automatic dominant-colour extraction
  • History of recently sampled colours
  • The image never leaves your device

How to use it

  1. Drop in an image.
  2. Click anywhere on it to sample that pixel.
  3. Press Extract palette for the dominant colours.
  4. Click any swatch to copy its hex value.

How the palette is extracted

The dominant colours are found by colour quantisation. Every pixel is sorted into a bucket by rounding its red, green and blue channels to a coarser resolution, this tool uses 32 levels per channel, and the buckets with the most pixels win. It is a simple approach compared to k-means clustering or the median-cut algorithm that GIF encoders use, but it is fast, runs on any image size, and produces sensible results for the purpose.

One deliberate refinement: very dark and very desaturated pixels are down-weighted. Photographs frequently have large areas of near-black shadow or near-white sky that dominate a naive pixel count while telling you nothing useful about the image's character. Filtering them out surfaces the colours a designer would actually pick out.

A caveat about accuracy. What you sample is the pixel value after the browser has decoded the image and applied any colour management. If the file carries an embedded ICC profile, common in photographs from a decent camera, the value you get here may differ slightly from what a colour-managed application like Photoshop reports. For web work the browser's value is the right one, since that is what visitors will see. For print work, sample in software that respects the profile.

Frequently asked questions

Yes, completely. Color Picker from Image is free with no usage limits, no account and no sign-up. There is no paid tier and no trial that expires. Tools marked Premium on this site carry that label to indicate a deeper feature set, not a price.
Color Picker from Image covers click any pixel to sample its colour, hEX, RGB and HSL output, automatic dominant-colour extraction, among other things. Everything is available immediately with no account, no sign-up and no usage limit.
The dominant colours are found by colour quantisation. Every pixel is sorted into a bucket by rounding its red, green and blue channels to a coarser resolution, this tool uses 32 levels per channel, and the buckets with the most pixels win. It is a simple approach compared to k-means clustering or the median-cut algorithm that GIF encoders use, but it is fast, runs on any image size, and produces sensible results for the purpose.
Your image is decoded and processed by your own browser using the File and Canvas APIs. It is never uploaded, there is no server to receive it. You can verify this by opening your browser's developer tools, switching to the Network tab, and watching while you use the tool: you will see no request carrying your file. Because nothing depends on a server, the tool also keeps working offline once the page has loaded, the site registers a service worker that caches it after your first visit.

Related tools

Further reading

📖 How to Get the Exact Hex Color from Any Image

Read the full guide on the 123MiniApps blog.

Pick a theme

Ten hand-tuned palettes.