Skip to main content

Image Color Picker

Point at any pixel to see its exact colour under a magnifier, click to keep it, and copy it as HEX, RGB, HSL, HSV, CMYK or OKLCH.

Upload an image to pick colours

Drag and drop files here, or click to browse

Choose file

or paste an image (Ctrl+V)

Processed in your browser, never uploaded. You keep full ownership of your images. View license

How to pick a colour

  1. Open an image.
  2. Move over it. A magnifier shows the pixels around the pointer and the colour in the centre. Scroll to zoom in and drag to move around. On a touch screen, slide your finger and lift it on the colour you want.
  3. Click to keep the colour. Arrow keys move the sample by one pixel, or ten with Shift.
  4. Copy the HEX code, or open Values for the other formats. Saved keeps your last 30 picks.

One pixel or an average

Photos are rarely made of flat colour. Sensor noise, JPG compression and texture mean that two neighbouring pixels can have noticeably different values. With a sample size of 1 px the tool reads a single pixel exactly; 3 x 3, 5 x 5 and 11 x 11 average a square around it.

  • For flat graphics and logos, use 1 px inside a shape.
  • For photos, a larger sample gives a more typical colour. The Palette Generator summarises the whole image.
  • Avoid edges, where pixels are blends of two colours.

Colour formats

FormatUseExample
HEX and RGBCSS, most design apps#1D4ED8, rgb(29, 78, 216)
HSL and HSVAdjusting hue, saturation or lightnesshsl(224, 76%, 48%)
OKLCHModern CSS, even steps of lightnessoklch(48.8% 0.217 264.4)
CMYKA rough guide for printcmyk(87%, 64%, 0%, 15%)

CMYK here is a simple conversion. Real print values depend on the printer, ink and paper, so ask your printer for their colour profile when it matters. The tool also names the closest CSS colour keyword.

Checking text contrast

Contrast compares the picked colour with white, black, another picked colour or any HEX code, and shows the WCAG 2 ratio. Normal text needs 4.5:1 for level AA and 7:1 for AAA; large text needs 3:1 and 4.5:1. Values are rounded down, so a ratio just under a limit is never shown as a pass.

Colour accuracy

The values are what the browser decoded, in sRGB, from the full-resolution image. If your image uses a wide-gamut profile, or your design app handles profiles differently, its eyedropper may show slightly different numbers. For brand colours, take values from the original vector or design file when you can.

Where the processing happens

The image stays in your browser and is not uploaded. Copying uses your clipboard only when you press copy. The site itself loads analytics and advertising scripts, described in the Privacy Policy.

Questions about this tool

How do I get the HEX code of a colour in a picture?

Open the picture, zoom in if the area is small and click it. The HEX code appears, and Copy HEX copies it.

Can I get RGB, HSL or CMYK values?

Yes. Open Values for HEX, RGB, HSL, HSV, CMYK and OKLCH, each with a copy button.

I clicked the same area twice and got two different colours. Why?

Photos are made of slightly different pixels because of texture, noise and compression. Choose a larger sample size to average an area.

Can I go back to a colour I picked earlier?

Yes. Saved keeps your last 30 picks until you close the image. You can copy them all or download them as CSS variables.

It says the spot is transparent. What does that mean?

That pixel is fully see-through, so it has no visible colour. Pick a spot inside a shape.

The colour is slightly different in my design app. Which one is right?

Apps can handle colour profiles differently, so values can differ a little. For brand colours, take the code from the original design file when you can.