Image · Colours out of pictures

Color Picker

Pick a colour from an image, get every format

Click anywhere on an image to read its exact colour, extract a palette from the whole picture, and copy HEX, RGB or HSL.

Pixel samplingPalette extractionHEX · RGB · HSLContrast check
Formats
3
Palette size
8
Uploaded
0 B

Color Picker

Runs in your browser · nothing uploaded
#cdff2e rgb(205, 255, 46) hsl(74, 100%, 59%)
Nothing opened
Colour
HEX #cdff2e
RGB rgb(205, 255, 46)
HSL hsl(74, 100%, 59%)
Hue 74°
Saturation 100%
Lightness 59%
On white 1.17:1 — fails WCAG contrast
On black 17.94:1 — passes AAA for body text

01 — How to use Color Picker

1 Open an image Any common format. It is read from your disk and drawn into a canvas in this tab so its pixels can be sampled.
2 Click to sample Clicking anywhere on the image reads that exact pixel and shows it in every format at once.
3 Use the extracted palette The eight most prominent colours are worked out from the whole picture. Click any swatch to select it.
4 Copy what you need HEX, RGB or HSL, one click each. The contrast figures against white and black are shown alongside.

02 — Getting good results

The contrast figures are the ones that matter A colour that looks fine in isolation may be unusable as text. The two ratios shown are calculated to the WCAG definition, which linearises each channel before weighting it — the eye does not respond linearly to light, and averaging the raw byte values produces figures wrong by enough to pass text that genuinely fails. 4.5:1 is the threshold for body text, 3:1 for large text, and 7:1 for the stricter AAA level.
Sample several pixels before committing Photographs are noisy and compressed. Two pixels that look identical can differ by several values in each channel, and JPEG compression introduces colour shifts around edges in particular. If you are extracting a brand colour from a photograph of a printed item, sample a few points across a flat area and take something near the middle rather than trusting the first click.
The palette is bucketed, not exact A photograph contains thousands of near-identical shades, so the single most frequent exact value is rarely representative of anything. Colours are grouped into coarse buckets first and each swatch reports the average of the pixels that landed in its bucket. That is why the palette resembles the picture rather than listing eight indistinguishable greys.
HSL is easier to adjust than HEX Hue, saturation and lightness map onto the changes people actually want to make: a slightly darker version of the same colour, or the same colour less intense. Doing that in HEX means adjusting three values simultaneously and hoping. Sample here, then edit the lightness figure to build a scale.

03 — Questions

No. It is drawn into a canvas in this tab and read back locally. Nothing is transmitted at any point.

04 — More about Color Picker

61 more tools
where this came from.

Same shell, same shortcuts, same promise: nothing leaves your browser.

Browse all 62