Screen Color Picker
Free · No install

The instant HEX color picker.

Click any pixel on your screen and get its hex code immediately — with RGB, HSL and OKLCH alongside. Works across PDFs, native apps, and paused video.

TL;DR

Screen Color Picker is a free color picker that runs entirely in your browser. Click once and sample any pixel on your screen, even outside the browser, then copy it as HEX, RGB, HSL or OKLCH. Picked colors never leave your device. Key limit: live picking needs desktop Chrome, Edge, Brave or Opera; other browsers use screenshot mode.

Last updated

Pick a color — instant, picks from anywhere on screen (even outside the browser).
Screenshot — when you need to pick from another tab without losing focus.

The format

What a HEX colour code actually is.

A hex colour code is three bytes written in base 16. #3da5ff is red 3d (61), green a5 (165), blue ff (255). Each pair runs from 00 (none of that channel) to ff (all of it), giving 256 levels per channel and 16.7 million combinations total.

That's it. Hex is RGB wearing a compact skin. There is no extra information in a hex code that isn't in the equivalent rgb() value — it's the same three numbers, written more briefly and with less punctuation.

The shorthand form exists too: #f0c expands to #ff00cc by doubling each digit. It only works when both digits of each pair match, so most real colours can't use it. And the 8-digit form adds alpha: #3da5ff80 is the same blue at roughly 50% opacity. Supported everywhere modern, but genuinely hard to read — 80 meaning "half" is obvious to nobody.

Hex has been the web's default colour notation since the first HTML specs in the early nineties, and its staying power is entirely about ergonomics: it's short, it survives copy-paste, it never has ambiguous syntax, and every tool on earth accepts it.

Getting it right

Sampling a hex code accurately.

The failure mode with hex sampling isn't getting a wildly wrong colour — it's getting one that's nearly right. A value two digits off looks fine in isolation and subtly wrong next to the real thing, and nobody can articulate why.

Sample from the middle of a large flat area. Every accuracy problem is a variation of breaking this rule. Zoom in first if the region is small — a 40px logo has almost no truly flat pixels, but the same logo at 400px has an obvious safe zone.

Never sample text. Text is drawn with subpixel antialiasing, which lights individual red, green and blue subpixels to fake horizontal resolution. Sample a letterform edge and you get a value tinged orange or cyan that appears nowhere in the actual design.

Watch for JPEG artefacts. Compression introduces colour ringing near sharp edges. The test: sample the same region twice, a few pixels apart. If the two values differ, you're in an artefact zone — move toward the centre until they agree.

Check for transparency. A semi-transparent pixel composites against whatever is behind it. If the sampled value changes when you put the asset on a different background, that region isn't opaque and your reading is a blend, not the colour.

Beyond hex

When hex is the wrong tool.

Hex is a transport format, not a thinking format. You cannot look at #3da5ff and #5ab0ff and say which is lighter without base-16 arithmetic. You cannot make a colour 10% darker by editing the string. You cannot tell whether two hex codes are the same brightness at different hues.

That matters the moment you stop grabbing one colour and start building a system. Generating a 50–900 shade ramp, computing hover states, checking contrast, inverting for dark mode — none of those operations are expressible in hex.

This is why modern design systems have moved to OKLCH, where lightness is perceptually uniform and stepping it produces evenly-spaced-looking shades. Tailwind v4 uses it as the native colour space. Hex also physically cannot express colours outside sRGB, which rules out the wider Display P3 gamut that most modern laptops and phones can show.

The practical split: use hex when handing a colour to a human or another tool, and use OKLCH when generating anything. This picker gives you both from the same sample, so you never have to choose at pick time.

Questions

HEX colour picker FAQ

How do I get the hex code of a colour on my screen?

Click Pick a color, then click any pixel on your screen — including inside other applications, a PDF, a paused video, or a design tool. The hex code appears instantly alongside RGB, HSL and OKLCH, each one click to copy. It works because Chromium browsers ship a native EyeDropper that the browser itself operates; the page only ever receives the single colour you clicked.

What does each pair of characters in a hex code mean?

The first pair is red, the second green, the third blue, each in base 16 from 00 to ff (0–255 in decimal). So #3da5ff is red 61, green 165, blue 255 — a fairly bright blue. A fourth optional pair encodes alpha: #3da5ff80 is the same colour at about 50% opacity.

Why is my sampled hex code slightly different from the brand's official value?

Usually one of three causes. Antialiasing, if you sampled near text or a thin stroke. JPEG compression, if the source was a compressed screenshot — sample twice a few pixels apart to detect this. Or colour-profile conversion, if the content is tagged Display P3 and your monitor is sRGB, in which case the OS converts before painting and you sample the converted result. Always prefer a declared value from an SVG source or CSS variable when one exists.

What's the difference between 3-digit, 6-digit and 8-digit hex?

6-digit is the standard form: two characters each for red, green, blue. 3-digit is shorthand that doubles each character, so #f0c means #ff00cc — it only works when both digits of every pair are identical. 8-digit adds a fourth pair for alpha transparency, supported in every modern browser.

Is hex better than RGB?

They are the same three numbers, so neither is more accurate. Hex is shorter and more universally recognised, which makes it better for handoff. RGB is easier to do arithmetic on and has more readable alpha syntax, which makes it better inside code that manipulates pixels. For generating colour scales, neither is appropriate — use OKLCH.

Does this work in Firefox or on my phone?

No. The EyeDropper API is Chromium desktop only — Chrome, Edge, Brave, Arc, Opera and Vivaldi on Windows, macOS, Linux and ChromeOS. Firefox and Safari have not implemented it, and no mobile browser has, because there is no cursor to hover over an arbitrary pixel on a touchscreen.