Image Color Picker

Dimensions (px)—
Aspect ratio—
Megapixels—
Uncompressed size (RGB)—

How Image Color Picker is calculated: Click a pixel and the tool reads its red, green, and blue values from the canvas — the exact colour stored in the file at that spot, shown as hex and RGB.

What is an image colour picker?

An image colour picker reads the exact colour of any pixel in a photo you upload. You open a picture — a brand photo, a screenshot, a sunset — click on the spot whose colour you want, and the tool tells you its hex code and its red, green, and blue values. No guessing from a screenshot, no sampling by eye: the number comes straight from the file.

Designers use it to match colours from the real world. A client sends a photo of their shop sign and asks for the website to use the same blue. A slide needs the exact green from a product photo. A social post needs the background colour of a picture it sits next to. In each case the colour already exists in an image, and the picker reads it out.

This picker works entirely in your browser. The image is read on your own device, drawn on a canvas, and the pixel you click is read from that canvas. Nothing is uploaded to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

How a pixel becomes a hex code

Every digital image is a grid of pixels, and every pixel is three numbers: red, green, and blue, each from 0 to 255. A pixel in a blue sky might be red 86, green 180, blue 233. The picker takes those three numbers and writes them as a hex code: 86 is 56 in hexadecimal, 180 is B4, 233 is E9, so the colour is #56B4E9. Hex and RGB are the same colour written two ways.

The reading happens on a canvas. When you choose a file, the browser draws it on a canvas element, and when you click, the tool asks the canvas for the pixel under your cursor. The canvas returns the exact stored values — not an average, not a guess. The pixel coordinates shown with the colour are the coordinates in the original image, so you can find the same spot again.

One detail matters: the image is shown scaled down if it is wider than 900 pixels, so it fits the page. The click is mapped back to the full-size image before the pixel is read, so the colour you get is from the original resolution, not from the scaled preview. A click on a small preview still reads the exact pixel of the big file.

Hex, RGB, and why both matter

Hex is the colour as a web developer writes it: six hexadecimal digits after a hash, like #FF5733. The first two digits are red, the middle two are green, the last two are blue. RGB is the same three numbers in decimal, like 255, 87, 51. Every hex code has exactly one RGB form, and every RGB triple has exactly one hex code — the picker shows both so you can use whichever your tool wants.

Hex is what CSS, design tools, and brand guides use. RGB is what photo editors, canvas code, and colour maths use. If you paste a colour into a stylesheet, use the hex. If you are blending colours or feeding a value into code, use the RGB numbers. The picker gives you both at once, plus a copy button for the hex, because that is the one people paste most.

A third form exists — HSL, hue, saturation, and lightness — but this picker does not show it, because hex and RGB are enough for matching a colour. If you need HSL, our hex to RGB converter breaks a hex code into its channels, and our color palette generator builds a whole palette from the colour you picked.

A worked example: reading a photo's size first

Before you pick a colour, the results box tells you about the image itself. Take a typical photo, 1920 by 1080 pixels. The tool shows dimensions 1920 × 1080, aspect ratio 16:9, 2.1 megapixels, and an uncompressed size of 5.93 MB at 3 bytes per pixel. Those numbers come from the width and height you see above the picker, which fill in automatically when the image loads.

Now try a smaller image. An 800 by 600 photo is 0.5 megapixels, its aspect ratio is 4:3, and its uncompressed size is 1,440,000 bytes at 3 bytes per pixel, which is 1.37 MB. The numbers change with the image, but the picking works the same way at any size: click a pixel, read its colour.

And a large one: a 4000 by 3000 photo is 12.0 megapixels, its ratio is 4:3, and its uncompressed size is 36,000,000 bytes, which is 34.33 MB. The picker scales the display down to fit the page, but the pixel it reads is always from the full-size image, so a click on a 4000-pixel-wide photo reads the exact pixel you pointed at, not an averaged neighbour.

Who picks colours from images, and why

Brand designers are the biggest users. A logo exists as an image, a shop sign exists as a photo, a product exists as a picture — and the website, the slides, and the social posts all need the exact same colours. The picker is the bridge between the real-world colour and the hex code in the stylesheet.

Web developers use it for matching. A screenshot of a design, a photo a client sent, a competitor's page — the colour you need is in the image, and the picker reads it in one click instead of a round of guessing and checking. A color contrast checker then tests whether text in that colour reads against its background.

Artists and photo editors use it to build palettes from a picture. Pick the sky, the sea, the sand, and the shadow from one photo and you have a palette that already works together, because the colours came from the same light. Our image metadata viewer reads the same photo's dimensions and format if you need those too.

Image colour picker vs an eyedropper in a design tool

A design tool's eyedropper does the same job, and it wins when you are already working in that tool: one click, the colour is in your palette, no file to upload. This picker wins when you are not in a design tool — on a phone, on a borrowed computer, or when the image is a file and the colour is needed in a chat message, a document, or a stylesheet.

The picker also wins on privacy. A design tool uploads your image to its servers or needs an account; this page reads the file on your device and never sends it anywhere. For a client's unreleased product photo or a personal picture, that difference matters.

One honest limit: this picker reads one pixel at a time. A design tool can average an area, which is better for a noisy or textured region — a single pixel of a brick wall might be an odd dark spot, while the average of the wall is the colour you want. If a single click gives a strange colour, click a few nearby pixels and take the one that appears most often.

Common mistakes when picking colours from images

The most common mistake is clicking on a JPEG artefact. JPEG compression smears colours around sharp edges, so a pixel right on the edge of a red sign and a white wall can be a pink that exists nowhere in the real sign. Click the middle of a flat area, not an edge, and the colour will be true.

The second mistake is picking from a shadow or a highlight. A red shirt in shadow is a dark red, and the same shirt in sunlight is a bright red — both are real pixels, but neither is the shirt's colour. Pick from a mid-tone area in even light, and the colour will match what the eye sees.

The third mistake is trusting a single pixel on a textured surface. Wood, fabric, and skin all vary pixel to pixel, so one click can give an outlier. Click three or four nearby spots and use the colour that repeats. And the fourth mistake is forgetting the file format: a PNG keeps exact colours, a JPEG shifts them slightly, and a screenshot can include the screen's own colour profile. For brand work, pick from the original file, not from a screenshot of it.

How to use this image color picker

First, choose an image with the file picker. JPEG, PNG, and WebP files work; other formats are rejected with a clear message, because those are the three formats a browser canvas can reliably read. As soon as the image loads, its real width and height fill in above, and the image appears below with a note to click it.

Next, click anywhere on the image. A box appears under it showing the colour as a swatch, its hex code, its RGB values, and the pixel coordinates you clicked. Click another spot and the box updates. The copy button copies the hex code to your clipboard, ready to paste into a stylesheet or a design tool.

Finally, use the colour. The results box above keeps the image's dimensions, aspect ratio, megapixels, and uncompressed size, so you can check the numbers while you work. Your image never leaves your device: the whole process runs in your browser, and closing the page deletes everything.

Frequently Asked Questions

No. The file is read on your own device, drawn on a canvas in your browser, and the pixel you click is read from that canvas. Nothing is sent to any server, so your photos stay private, and the tool works even on a slow connection once the page has loaded.

JPEG, PNG, and WebP. These are the three formats a browser canvas can reliably read, so the tool accepts them and rejects anything else with a clear message. The colour is read from the original file at full resolution, even though the preview is scaled to fit the page.

Because you are clicking different pixels. A photo's colours vary pixel to pixel, especially on textures, gradients, and JPEG-compressed edges. Click the middle of a flat area for a stable reading, and click a few nearby spots if the first one looks like an outlier.

None in meaning — they are the same colour written two ways. Hex #FF5733 is red 255, green 87, blue 51 written in hexadecimal. Use hex in CSS and design tools, and RGB in code and colour maths. This picker shows both, plus a copy button for the hex.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.