Pick a Colour from an Image

Click or drag over the picture to sample a colour. The exact value appears as HEX, RGB and HSL, ready to paste into CSS, a design file or a brand note.

Pick a Colour from an Image

Drop an image

Or choose a file from your device

JPG, PNG, WebP, AVIF, GIF or HEIC · one image · max 40 MB

Pixels are read in this tab — the image is never uploaded.

Three steps — nothing to install

  1. Add the image

    JPG, PNG, WebP, AVIF, GIF or HEIC. The preview keeps the proportions of the original.

  2. Click the pixel

    Drag across the image to sample several colours; the last ten distinct picks stay in the list.

  3. Copy the value

    HEX is one click. RGB and HSL are shown so you can type them into any tool.

What the numbers mean

HEX is a compact RGB value used in CSS and most design apps. RGB states the three channels directly, from 0 to 255. HSL describes the same colour as hue, saturation and lightness, which is easier to reason about when making a palette darker or more muted.

The values are read from the canvas after the browser has decoded the file, so they are display colours in the sRGB space. If the original has an embedded colour profile, the browser converts it; the picked value is what a screen shows, not necessarily the raw bytes in the file.

Sampling a photo accurately

Photos have noise, and compression adds more. One pixel can be several levels away from the colour the eye sees for the area. Click a few nearby points and compare, or pick a flat region — a wall, sky or background — rather than a textured one.

Transparent pixels are refused rather than reported as black, because there is no colour there to copy. For a logo, click on the ink, not inside the transparent area.

Privacy and limits

The image never leaves the device: it is decoded, drawn and read in the browser tab. Nothing is stored, and the history list exists only on this page.

Sampling is precise to one pixel of the preview, not the original: the preview is scaled down for large photos, so a click maps to the nearest corresponding pixel. For exact brand-colour matching, use the original file in a desktop editor — this tool is for reading what you see.

Frequently asked questions

Can I pick several colours?Yes. Each click adds to the recent list, which keeps the last ten distinct values and lets you copy any of them.
Why is the picked colour slightly different from my design file?Screens, colour profiles and JPEG compression all shift values by a few levels. The tool reports what the decoded image shows.
Does it work on a transparent PNG?Yes, but transparent pixels have no colour and are rejected. Click on visible ink or background.
Can I use the values in CSS?Yes — the HEX value and the RGB or HSL text are exactly what CSS accepts.
Is my image uploaded?No. The pixels are read in this browser tab.