Image color picker Read the exact pixel

Drop in an image, click a pixel, and get its hex code, RGB value and nearest colour name, in nine notations. Sampling happens in your browser, and the image is never uploaded.

  • Source resolution. Read from the file, never from the scaled copy on screen.
  • No upload. You need no account, and no server keeps a copy.
  • 15× magnifier. It has a pixel grid, so you can see what you take.

Sample This is a sample image. Use your own to read its exact colours.

Sampling happens in your browser. Nothing is uploaded. How this works

sample-sunset.png

size480×320typePNGbytes26 KB

Stage

click a pixel · ctrl-scroll to zoom · arrows to nudge
1.0×

Move the pointer over the image and click to sample a colour. With the keyboard, use the arrow keys to move one pixel at a time, hold shift to move ten, and press Enter to sample. The plus and minus keys zoom.

Move over the image to inspect a pixel.

Sampled

#ffd23frgb(255, 210, 63)x 300 · y 100
Copy as
  • HEX#ffd23f
  • RGBrgb(255, 210, 63)
  • HSLhsl(46, 100%, 62%)
  • OKLCHoklch(87.9% 0.162 90.9)

Sampling happens in your browser. Nothing is uploaded.

Palette

Extracted from this image

6 colors, ordered by how much of the image they cover. Click a colour to load it into the panel.

Custom properties ready to drop into :root.

  • #e4437drgb(228, 67, 125)
  • #732f8argb(115, 47, 138)
  • #f35c58rgb(243, 92, 88)
  • #cf46b3rgb(207, 70, 179)
  • #12313frgb(18, 49, 63)
  • #8c3b9frgb(140, 59, 159)

Notations

  • HEX#ffd23f
  • RGBrgb(255, 210, 63)
  • RGBArgba(255, 210, 63, 1)
  • HSLhsl(46, 100%, 62%)
  • HSLAhsla(46, 100%, 62%, 1)
  • HSVhsv(46, 75%, 100%)
  • CMYKcmyk(0%, 18%, 75%, 0%)approx
  • LABlab(85.86 1.87 73.88)approx
  • CSSrgb(255 210 63)

Closest CSS keyword: gold approximate: #ffd700 is 13.83 ΔE away, so it is not the same colour

01

How to pick a colour from an image

Four steps, and the second one is the one most tools skip.

  1. Load the picture. Choose a file, drag one in, paste from the clipboard, or give a direct image address. Nothing leaves your browser.
  2. Find the pixel. The magnifier shows the pixels around your cursor at fifteen times their size with the target cell ringed. This matters more than it sounds: the edge of a letter or a logo is a band of blended pixels that exist in neither colour.
  3. Sample it. Click, tap, or press Enter. Arrow keys nudge one pixel at a time; hold shift for ten.
  4. Take it with you. Copy any single value, or extract a palette from the whole image and export it as CSS, JSON, CSV, text or a PNG card.

The longer version, including why JPEG artefacts and screenshots mislead you

02

The notations, briefly

Every colour here is the same three bytes written down several ways. Which one you want depends on what you are about to do with it.

HEX#3498db

Six hexadecimal digits: two each for red, green and blue, from 00 to ff. A seventh and eighth pair add opacity.

For carrying a colour, because it is short and exact and cannot be misread.
RGBrgb(52 152 219)

The same channels as decimal numbers from 0 to 255. Screens emit red, green and blue light, so these say how hard each of the three is being driven, which is why all three at full strength gives white.

For arithmetic on a colour.
HSLhsl(204 70% 53%)

Hue as an angle, saturation as colourfulness, lightness from black to white. It describes a colour the way a person would, so it is the one to adjust by hand.

For making something lighter without changing what colour it is.
OKLCHoklch(62% 0.13 240)

Perceptual lightness, chroma and hue. Unlike HSL, equal numeric steps look like equal visual steps, so a ramp built in OKLCH does not lurch or drift in hue.

For generating colour ramps that behave.
CMYKcmyk(76% 31% 0% 14%)

Ink coverage for printing rather than screens. Ink subtracts light instead of adding it, and the real conversion depends on the press, the paper and the profile. A number worked out in the browser is only a starting point.

Labelled approximate here, because it is.

A fuller comparison of the three web notations · and where the newer spaces fit

03

Why the value is exact

Almost every image on screen is being displayed at a different size from its real dimensions. A 3000-pixel-wide photo in a 900-pixel-wide box has been resampled, and each pixel you can see is a blend of several real ones. On a retina display it has been scaled again.

A tool that samples what is on screen hands you that blend: a value that exists nowhere in your file, and that changes if you resize the window.

ColorFinders maps your cursor back to a coordinate in the source image, then draws that one pixel at 1:1 into a one-pixel canvas with smoothing turned off and reads its bytes. Display scale, zoom level, pan position and device pixel ratio cannot affect the result. The coordinate readout under the stage is how you can tell: it is the position in your file, not on your screen.

04

What people use it for

  • Matching a brand colour when a logo arrives as a PNG with no brand guide attached.
  • Building a palette from a photograph. The colours in a photo already agree with each other, because one light source produced them all.
  • Reproducing a colour from a screenshot, where sampling is both faster and exact.
  • Checking what a colour really is when compression and anti-aliasing mean neighbouring pixels are not the same.
  • Writing CSS: sample once, then copy the value in the notation your stylesheet uses.
  • Confirming a pairing is readable by sending the value to the contrast checker.
  • Checking a palette works for everyone in the vision simulator.
05

Where your image goes

Nowhere. The site is built so that it stays in your browser.

  • Your file is read by the browser's own image decoder and drawn onto a canvas in this tab. No request carries it anywhere.
  • Because nothing is uploaded, nothing is stored or kept for any period, and there is nothing for anyone to hand over.
  • Closing the tab deletes everything, including the file's name and dimensions.
  • One deliberate exception: paste an image address and your browser fetches it directly. It still does not pass through us.

The full privacy policy

06

The other instruments

07

Written guides

  • How to pick a color from an imageWhy a sampled pixel and the colour you think you see are often different, and how to sample the one you actually want.
  • HEX vs RGB vs HSLThree ways of writing the same colour. What each notation is good at, and when to reach for which.
  • What is a HEX color code?Reading a hex code by eye, the shorthand form, the alpha byte, and the arithmetic underneath.
  • Understanding WCAG color contrastWhere the 4.5:1 threshold comes from, what "large text" means in practice, and the parts of a page the ratio does not cover.
  • How to use color codes in CSSEvery way CSS accepts a colour, why custom properties beat repeating hex codes, and the relative-colour syntax that replaces most of your Sass functions.
  • How to create a website color paletteGoing from one colour to a working system: how many steps you need, why neutrals are most of the work, and where to check before committing.
  • Designing for color blindnessWhat the 8% actually experience, which colour pairs to stop using, and the redundant-cue rule that solves most of it.
  • sRGB, Display P3 and OKLCHWhy the same hex looks different on two screens, what a wide gamut buys you, and when the newer CSS colour spaces are worth the trouble.

Questions

How do I find the hex code of a colour in an image?

Load the image above, move the magnifier onto the pixel you want and click it. The hex code appears straight away, next to the same colour in RGB, HSL, HSV, OKLCH, LAB and CMYK, and each one has its own copy button. To get several hex codes at once, extract a palette from the whole image instead.

Can it tell me the name of a colour in a picture?

It gives the nearest of the 148 CSS colour keywords. When the pixel matches a keyword exactly, the name is shown as it is. Otherwise it is shown as the closest keyword, marked as approximate and with the distance between the two, because most real colours have no exact name.

Is my image uploaded anywhere?

No. ColorFinders reads your image with the canvas API inside your own browser tab. Nothing is uploaded, so no copy sits on a server and there is nothing to delete afterwards. You can confirm it by opening your browser devtools, switching to the network panel and picking a colour: no request is made.

Is the colour I get the exact colour of the pixel?

Yes, for HEX, RGB and RGBA. ColorFinders reads the pixel from the source file at its original resolution, not from the version scaled to fit your screen, so display scaling and zoom cannot change the answer. HSL, HSV and LAB are exact conversions of those bytes. CMYK is a conversion without a colour profile, so it is an approximation and is labelled as one.

Why does the colour look different in my design tool?

Usually because of a colour profile. A JPEG can carry an embedded profile such as Display P3, and browsers, design tools and operating systems do not all convert it the same way. ColorFinders reports the RGB values the browser decoded. If you need profile-accurate work, sample inside the application that owns the profile.

Which image formats work?

PNG, JPEG, WebP, GIF, BMP and SVG. Files are identified by their actual content rather than their file extension, so a mislabelled file is refused instead of failing halfway through. The limit is 25 MB and 40 megapixels.

Why will some image URLs not load?

Reading pixels from another site's image needs that site to allow cross-origin access. Many do not, and some also block hotlinking or require a login. ColorFinders does not try to work around those controls. Download the picture and choose it as a file instead.

Do I need an account?

No. Every tool on this site works without signing in, and there is nothing held back behind a login or an advertisement.

How is the palette worked out?

By median-cut clustering: the image is reduced to a histogram, the busiest colour box is repeatedly split along its widest axis, and each final box is averaged. It runs on your machine and it is deterministic, so the same picture always gives the same palette. It is ordinary image quantisation, not machine learning.

Can I pick a colour from outside the browser?

On Chrome and Edge, yes. The Pick from screen button uses the browser's own eyedropper, which can sample any pixel on your display. It is not available in Firefox or Safari, so the button only appears when your browser supports it.

Does it work on a phone?

Yes. You tap to sample, zoom with buttons instead of pinching, and the magnifier follows your finger so you can see which pixel you are about to take. The page never scrolls while your finger is on the image.