Image Color Picker
Pick colors from images and copy HEX, RGB or HSL — free, private and running entirely in your browser
Color Picker samples one pixel from a PNG, JPG, WEBP, SVG, or GIF up to 25 MB. There is no screen eyedropper and no box to type a colour. The file is not uploaded and not saved.
Last updated: 11 October 2026
Guide, examples, and FAQ
About Color Picker
What it does
The file is drawn once at its pixel size. Math.floor maps the pointer to one pixel. Red, green, and blue are read; alpha is not. The loupe hides when you leave, and the Sampled pixel card stays. A row is HEX, then rgb · hsl, then cmyk.
Who it is for
Someone taking colours from an image or checking two of them.
When to use it
When the value has to come from this file.
Key features
One pixel
Hover or click. The loupe shows the HEX over the image. The hint when you are outside it is Move to sample.
Palette
Colors is 3 to 10 and starts at 6. colorthief getPaletteSync builds it, then Math.round. Brand palette (5) sets the slider to 5. Regenerate runs the library again.
Contrast
A and B fill the checker. The figure is toFixed(2). At least 7 is AAA, 4.5 is AA, 3 is AA Large, otherwise Fail. Empty slots show —.
Copies
The swatch copies HEX and toasts Copied. Copy palette joins HEX with a comma and a space. Gradient CSS ends with a semicolon. Export JSON saves palette.json.
How to use Color Picker
- 1Drop a file. The hint reads PNG, JPG, WEBP, SVG, or GIF · up to 25 MB.
- 2Move or click. One pixel is read. Alpha is ignored. The last sample stays.
- 3Leave Colors at 6, or move it from 3 to 10. Brand palette (5) sets 5 and extracts again.
- 4Press A and B. Then Copy palette, Copy gradient CSS, or Export JSON. Reset clears the image, the palette, the sample, and both slots.
Example
Before
rgb(232, 67, 147) rgb(17, 34, 51)
After
#E84393, hsl(331, 78%, 59%), cmyk(0, 71, 37, 9). #112233, hsl(210, 50%, 13%), cmyk(67, 33, 0, 80). #E84393 on white is 3.71:1 (AA Large). #112233 on white is 16.15:1 (AAA).
The row shows HEX, then rgb · hsl, then cmyk. Ratios are contrastRatio passed through toFixed(2). The two against-white figures are the extra pair.
Benefits
Copy strings
For those two HEX values, Copy palette writes #E84393, #112233. Copy gradient CSS writes background: linear-gradient(90deg, #E84393, #112233);
palette.json
Keys are hex, rgb, and hsl only. CMYK is not in the file. The download name is palette.json.
Common use cases
A logo file
Sample one opaque pixel and copy HEX from the swatch.
Text on a fill
Put the two pixels in A and B and read the label next to the ratio.
Tips & best practices
- A JPEG sample is the decoded pixel. Compression has already changed it.
- Reset leaves the Colors slider and the Accessible only switch where they were.
Common mistakes to avoid
- Expecting a screen-wide eyedropper. The sample is only this image.
- Expecting one exact brand colour from a photo. The palette is colorthief’s approximation, and JPEG pixels are already compressed.
- Treating AAA, AA, AA Large, or Fail as a legal ruling. They are this page’s cutoffs.
- Clicking an anti-aliased edge. That pixel is a blend.
Frequently asked questions
What does rgb(232, 67, 147) show on the row?
#E84393, then rgb(232, 67, 147) · hsl(331, 78%, 59%), then cmyk(0, 71, 37, 9). No colour names.
What do black, white, and the two pairs show?
#000000, hsl(0, 0%, 0%), cmyk(0, 0, 0, 100). #FFFFFF, hsl(0, 0%, 100%), cmyk(0, 0, 0, 0). Black on white is 21.00:1 (AAA). #E84393 on #112233 is 4.35:1 (AA Large). On white, #E84393 is 3.71:1 (AA Large) and #112233 is 16.15:1 (AAA).
Which messages appear?
This file type isn't supported. Use PNG, JPG, WEBP, SVG, or GIF. File exceeds the 25 MB limit. Try compressing it first. This file couldn't be read — it may be corrupted. Empty result: Could not extract a palette from this image. A throw: Could not extract a palette. plus the error, or that sentence alone when the error has no text.
Does Accessible only remove rows?
The hint is WCAG AA vs black or white. A colour stays if contrast against white or black is at least 4.5. No 0–255 colour fails that, so the rows stay.
Is the image uploaded or kept?
No. Sampling and the palette run in the browser. Nothing is sent away and nothing is written for the next visit.
Can I type a colour?
No. There is no text field and no screen eyedropper.
When another tool fits better
- Crop Image. You want the palette from one region. Crop writes that rectangle as PNG, JPG, or WebP.
- Convert Image. You want an SVG, or a GIF’s first frame, saved as PNG, JPG, or WebP before sampling that still.
Conclusion
Read one pixel as HEX, RGB, HSL, and CMYK, then check A against B. Copy the HEX before you leave the tab.
Ready to try Color Picker?
Scroll back up to start now, or continue with another free image tool.