TheFileTools

How to find the colour code of any pixel in an image

Open a picture, click a spot and read its colour as HEX, RGB and HSL, ready to copy into a design tool or a stylesheet.

You have a logo, a screenshot or a photo and need the exact colour in it: to match a heading to a brand colour, to continue a background, or to tell a printer or developer which blue you mean. Guessing by eye is unreliable. Reading the value from the pixel is exact.

Steps

  1. Open Colour picker from image.
  2. Choose a picture, drop it on the page or paste a screenshot from the clipboard. It stays on your device.
  3. Click the spot whose colour you want, or hold and drag across the picture and watch the values change.
  4. Press Copy next to HEX, RGB or HSL.

Before you click, the tool shows the colour at the centre of the picture.

Which value to use

  • HEX, such as #0071e3, is what most design tools, office programs and CSS accept.
  • RGB gives the same colour as three numbers from 0 to 255.
  • HSL describes hue, saturation and lightness, which is handy when you want a lighter or darker version of the same colour.

For CMYK or for converting a value you already have, use the Colour converter.

Why two clicks next to each other differ

A photo that looks evenly blue is made of many slightly different blues, and JPG compression adds its own variation. Drag over the area and pick a value that is typical, or sample a few points. Flat graphics such as logos and screenshots give stable values.

Large pictures are shown scaled down to at most 1600 pixels on the longer side, and the colour is read from that version. Fine one-pixel details in a big image can therefore be slightly blended with their neighbours. If you need one exact pixel from a large screenshot, cut out the region with Crop image first.

Limits

The tool reads one colour at a time. It does not build a palette. A fully transparent area has no colour of its own and reads as black.