Pick Colours and Extract a Palette from an Image
Point at any pixel and get its colour as HEX, RGB and HSL, one click to copy. Behind the picker, a median-cut pass reads the whole image and proposes an eight-swatch palette — the working colours of the photo, computed on your machine at no cost.
Loading the tool…
How it works
- Drop an image — a photo, a screenshot, a logo, a frame from a film.
- Click anywhere on it to sample that exact pixel.
- Copy the value in whichever notation your tool chain wants.
- Take the extracted palette below for the image's dominant colours.
Worth knowing
Pixel sampling is exact: the value you copy is the value stored at that coordinate, not an average of the click area. That matters when you are picking a brand colour off a logo, where anti-aliased edge pixels shade toward the background — zoom your source before exporting it, or click well inside flat regions to avoid sampling a blend.
The palette comes from median cut, the classic quantisation algorithm: the image's pixels are treated as points in RGB space, the box containing them is split repeatedly along its widest axis at the median, and each final box contributes its average colour. Three rounds of splitting yield eight swatches that between them cover the image's actual distribution — dominant tones weighted by area, not by visual salience.
That distinction explains the most common surprise: a small but striking red jacket may not earn a swatch, because area-weighted analysis sees mostly the grey street around it. For accent colours, use the click picker on the detail itself; use the palette for the overall temperature and grading of the image.
HSL output is included because it is the notation you can reason in — H shifts hue, S mutes or intensifies, L lightens. Taking a palette colour and producing hover and border variants is a matter of nudging L a few points, which is far more predictable than editing HEX digits.
Median cut splits colour space at the median of the widest channel, which is why an image that is 90% sky yields mostly blues — the palette reports area, and a striking accent covering 2% of pixels may legitimately not appear.
What this tool will not do
- It does not read vector colour definitions — an SVG is rasterised first, so you sample rendered pixels, not the source fill values.
- It cannot un-blend anti-aliasing; a pixel on a curved logo edge genuinely is a mix of foreground and background.
Questions people ask
How do I get the exact colour from a logo?
Click in the middle of a flat colour region, away from edges. Edge pixels are anti-aliased blends and will read a few points off the true brand value.
Why does the palette miss an obvious colour?
The extraction weights by pixel count. A colour that reads as prominent to your eye but covers little area gets outvoted by backgrounds. Sample it directly with a click instead.
What is the difference between HEX and RGB here?
None in value — #4d96ff and rgb(77, 150, 255) are the same colour in two notations. HEX suits CSS and design tools; RGB suits code that manipulates channels; HSL suits deriving lighter and darker variants.
Can I pick colours from a screenshot of another app?
Yes — paste it straight in with Ctrl+V or Cmd+V. Screenshots are pixel-exact on standard displays, so sampled values match the app's rendered output on your machine.
Does zooming the image change picked values?
The preview may scale for display, but sampling maps your click back to the underlying pixel grid, so values come from the image data, not the scaled rendering.
Usually the next step
More in Inspect & Developer Utilities
This page processed nothing on any server — there is no server. The technical explanation.