Drop, paste or pick an image
JPG · PNG · WebP · AVIF — up to 50 MB
Settings
Free account. Your photos stay on this device.
Everything runs in this tab. Your photos are never uploaded to a server.
How the colour picker samples a pixel
The photo is drawn onto a canvas in your browser and the picker reads the red, green and blue values stored at the spot you click. No estimation, no upload.
The loupe shows real pixels
An 11 × 11 pixel area around the pointer is enlarged without smoothing, so you can see noise, anti-aliased edges and gradients before you commit to a pick.
Very large photos are sampled at 2400 px
Above that size each sampled pixel is an average of a few original ones. On flat areas the value is identical; on fine texture it's closer to what the eye sees.
Pick on phones too
Drag your finger and the loupe floats above it; lift to keep the colour. The last eight picks stay as swatches you can reselect.
HEX, RGB, HSL or OKLCH: which colour code to copy
All four describe the same sRGB colour. Pick the notation your tool expects — the table uses one violet as the example.
| Format | Example | Best for |
|---|---|---|
| HEX | #6A5BD6 | Design tools, brand guides, most CSS |
| RGB | rgb(106 91 214) | Canvas/JS code, alpha blending, video tools |
| HSL | hsl(247 60% 60%) | Quick manual tweaks of lightness or saturation |
| OKLCH | oklch(55.2% 0.182 284.3) | Modern CSS themes: even lightness steps, wide-gamut ready |
HEX and RGB are exact
They are the stored 8-bit values, so copying them round-trips perfectly between Figma, CSS and image editors.
HSL is rounded
Hue, saturation and lightness are rounded to whole numbers, so converting back can land one step away from the original HEX.
OKLCH for design systems
OKLCH lightness tracks what we perceive, which makes it the easiest way to build tint scales. Every modern browser supports oklch() in CSS.
Palette extraction: method and limits
The palette uses median cut, a classic quantisation method: the photo's pixels are split into boxes of similar colour and each box is averaged.
Shares, not just swatches
Each swatch shows the percentage of the image it represents, so you can tell a dominant background from a small accent.
Averages can shift small accents
A tiny bright detail may be merged with its neighbours and come out duller. Pick it directly with the loupe when the exact value matters.
Colours depend on the file
Values are read in sRGB after your browser applies the photo's colour profile. A Display P3 photo can contain colours sRGB can't express; those are clipped to the nearest one.
Color Picker: questions
How do I get the HEX code of a colour in an image?
Upload the image, move over it until the loupe centres on the pixel you want, and click. The HEX value appears on the right with a copy button, next to RGB, HSL and OKLCH.
Is this colour picker accurate to the exact pixel?
Yes for images up to 2400 px on the long side: you get the stored value of that pixel. Larger images are sampled on a 2400 px copy, which averages very fine detail.
How many colours can the palette extract?
Between 5 and 8 — use the slider. Flat graphics may return fewer when two boxes average to the same colour; they are merged rather than duplicated.
Can I use the palette in CSS or Tailwind?
Export CSS variables (--palette-1 … with the OKLCH value as a comment) and paste them in :root, or map the JSON into a Tailwind theme.
Why is the picked colour different from what I see on screen?
Screens with a wide gamut or a colour filter such as Night Shift change how a value looks, not the value itself. The code you copy is what's stored in the image.
Does the image get uploaded?
No. Picking and palette extraction run in your browser, so the colour picker also works offline once the page has loaded.
Related tools
Other Analyze tools people use alongside this one.
- FREEIn browser
EXIF Viewer
See camera, lens, date and GPS data, and strip it.
- Runs in
- Browser
- Max upload
- 50 MB
Analyze - FREEIn browser
Image to Text
Copy the text out of screenshots and scans.
- Runs in
- Browser
- Max upload
- 50 MB
Analyze - FREEIn browser
Photo Filters
One-click looks: film, mono, warm, fade.
- Runs in
- Browser
- Max upload
- 50 MB
Edit



