Skip to content
Tejo Tools
Search
Menu
Processed on your device

Image color picker

Click or tap any pixel of a picture to get its colour as HEX, RGB and HSL, right in your browser.

Last updated

What it does

Image color picker tells you the exact colour of one pixel in a picture: the blue of a logo, the shade of a wall in a photo, or a colour from a screenshot you want to match. You pick the pixel on the image itself, and the tool shows its colour three ways:

A swatch under the image shows the picked colour beside its HEX code and position.

How to use it

  1. Drop your image on the drop area, paste it, or select Choose a file. Select “Try a sample” to see an example photo. The first pick is the pixel at the centre of the image.
  2. Click or tap the image where you want the colour. With a mouse, drag to watch the values change as you move; press Esc during a drag to put the pick back where it was. On a touch screen, drag the crosshair to move it; a swipe on the image elsewhere scrolls the page.
  3. With the keyboard, press Tab to reach the image and use the arrow keys to move the pick one pixel at a time; Shift moves it 10 pixels.
  4. Select Copy HEX, or press Ctrl+Enter (⌘+Enter on a Mac). The RGB and HSL values have a Copy button each.

Good to know

Limits

You can pick from one image at a time, up to 50 MB and 50 megapixels. Adding another image replaces the one there. A partly see-through pixel’s colour channels are as your browser’s canvas returns them, which can be off by a unit or more when the pixel is nearly transparent.

Privacy

Your image stays on your device: the tool runs in your browser and doesn’t upload it. Nothing is saved for your next visit, not the image and not the colours you picked. When the site shows ads, Google can use cookies for them: in the EEA, the UK and Switzerland, Google asks for your consent first, and elsewhere Google’s own policies apply. The Privacy page explains how.

Advertisements

Frequently asked questions

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

Open the picture and click or tap the spot you want. The tool shows that pixel's colour as a HEX code such as #1A2B3C, with its RGB and HSL values. Select Copy HEX, or press Ctrl+Enter (⌘+Enter on a Mac), to copy the code; RGB and HSL have a Copy button each.

Which image formats can I use?

JPG, PNG, WebP, AVIF (where your browser opens it), GIF and BMP still images, up to 50 MB and 50 megapixels. Animated images, HEIC photos, SVG and TIFF files aren't supported.

Why isn't the colour exactly the one in my design?

JPG and WebP photos are usually saved with lossy compression, which shifts pixels a little from the colours they were made with, most of all near edges, so two pixels side by side can differ by a few units. A PNG keeps every pixel exactly. The values are also the colours your browser shows, in sRGB, so a photo saved with a wider colour profile reads as it looks on screen, not as the numbers stored in the file.

What happens with transparent pixels?

A pixel that is partly see-through gets two more HEX digits for its alpha, such as #1A2B3C80, and its RGB and HSL become rgba and hsla with the alpha from 0 to 1, such as 0.5. Its colour channels are as your browser's canvas returns them, which can be off by a unit or more when the pixel is nearly transparent.

Is my image uploaded?

No. Your image is read by your browser, on your device, and it isn't uploaded. The tool keeps nothing once you leave the page: not the image, not the colours you picked.

Advertisements