PNG Color Picker

Read the exact colour of any pixel in a PNG. Click anywhere on the image to sample; the tool shows you HEX, RGB, HSL and CMYK values for that point. Useful for design system audits, brand colour extraction and screenshot inspection.

100% private β€” processed in your browser. No upload, no server.

When you need a colour picker

Picking colours from existing images is one of those small design tasks that comes up constantly: matching a brand colour from a logo PNG when no brand guidelines exist, extracting the exact background colour from a screenshot, sampling a palette from a photograph for a moodboard, or verifying that a designed UI matches its mock-up pixel-for-pixel. Native tools exist (macOS Digital Color Meter, Windows PowerToys Color Picker, browser DevTools eyedropper), but they need you to have the image open in a specific app first. A web-based picker that works on any PNG you can drag onto the page is often faster.

This tool gives you four different code formats for every pick:

How this tool works

Your PNG is loaded into a canvas. When you click, the tool calls getImageData(x, y, 1, 1) at the click coordinates, reads the four bytes representing that pixel's RGBA, and converts the RGB values into the other colour spaces using standard formulas (HSL via the canonical W3C conversion, CMYK via the basic device-CMYK formula). The alpha value is shown separately as a 0–255 number.

The colour values come straight out of the PNG's stored data β€” there's no interpretation. If the PNG has an embedded ICC colour profile, browsers usually respect it during decoding, so the displayed colour matches what you'd see in any other browser.

HEX, RGB, HSL, CMYK β€” when to use each

HEX

The most concise way to write a colour. Two hexadecimal digits per channel (R, G, B), so #FF6B35 means red=255, green=107, blue=53. Used everywhere on the web. The only downside: hard to mentally adjust ("I want this slightly darker" requires maths). For machine consumption, HEX is fine; for design work, HSL is easier to reason about.

RGB

Same information as HEX but in decimal. rgb(255, 107, 53) means red=255 etc. Easier to read for non-developers; takes more characters. Modern CSS supports a no-comma form: rgb(255 107 53) and optional alpha rgb(255 107 53 / 0.5).

HSL

Hue (0–360Β°), Saturation (0–100%), Lightness (0–100%). Much more intuitive for design: H tells you what colour, S tells you how vivid, L tells you how light/dark. Want this same colour but darker? Just lower the L. Want a complementary colour? Add 180 to H. CSS, JS, design tools all speak HSL natively.

CMYK

Cyan, Magenta, Yellow, Key (black). Used in print workflows because printing inks are subtractive. The values shown here are a quick computational conversion from RGB; for production print, you'd run the image through a colour-managed pipeline using an ICC profile that knows the specific press, paper and ink set. Use these CMYK numbers as a starting point, not as final press values.

Common uses for this picker

Tips and best practice

FAQs

Why doesn't the picked colour match my image editor's eyedropper?

Most often a colour-profile / display calibration mismatch, or anti-aliasing at the click point. Sample the centre of a larger solid region.

Can I pick from a region instead of a single pixel?

This tool reads a single pixel at the click point. For region-averaging, sample several pixels and compute the mean β€” or use a dedicated dominant-colour tool.

Are the CMYK values exact?

They're a basic RGB-to-CMYK approximation, suitable for non-critical reference. Production print requires a colour-managed workflow with the destination's ICC profile.

Is anything uploaded?

No. The pick runs entirely in your browser using getImageData.

Will this work on JPG or WebP?

Yes β€” the tool accepts any image format the browser can decode.

How precise is the pick?

Exactly one pixel. The displayed image may be scaled down to fit your screen; the underlying canvas data is the full original resolution and click coordinates are mapped accordingly.

Related tools