How to Pick Any Color from Your Screen
Pick colors from your screen with the EyeDropper API (Chrome and Edge only) or your OS picker, and know when the value is wrong: sampled near an edge of a JPEG screenshot, a brand color drifted by up to 6.2 CIEDE2000.
The Browser EyeDropper
The EyeDropper API lets a web page ask you to click any pixel on screen and returns its color, even outside the browser window. MDN's compatibility data lists it in Chrome and Edge 95; Firefox and Safari do not support it, so a picker built on it needs a fallback such as uploading a screenshot. Our Color Picker uses EyeDropper where available and otherwise samples an uploaded image, and gives HEX, RGB, HSL and OKLCH.
Operating-System Pickers
- macOS: Digital Color Meter (in Utilities) shows values in a choice of color spaces; set it to sRGB if the value is going into CSS, because "native values" are in the display's own space.
- Windows: PowerToys Color Picker (Win+Shift+C) samples anywhere and copies HEX or RGB.
Where You Sample Matters: Measured
A sampled color is only as good as the image it comes from. We drew a #FF6B6B square and a 2px #0575E6 line on white, saved the picture as PNG and as JPEG at two quality settings, and sampled three spots (October 14, 2026; script in our test folder). The difference is CIEDE2000; around 2 is just noticeable side by side, above 4 clearly so:
| Image | Center of square | 1px inside the square's edge | Middle of the thin line |
|---|---|---|---|
| PNG | #ff6b6b (0.0) | #ff6b6b (0.0) | #0575e6 (0.0) |
| JPEG quality 90 | #ff6b6b (0.0) | #e77775 (4.5) | #1d6fc5 (4.2) |
| JPEG quality 75 | #ff6b6b (0.0) | #e7787f (6.2) | #1e6ec7 (4.1) |
In the middle of a flat area even a JPEG gave the exact value, but near edges and in thin strokes, where JPEG blends color across 2ร2 pixel blocks, the sample was visibly off. So: sample the center of the largest flat area, prefer a PNG screenshot or the source file, and treat a color taken from a logo's thin outline or small text as approximate.
Picking Several Colors at Once
To get a palette rather than one pixel, the Image Color Extractor clusters an uploaded image's pixels into its dominant colors. Note that colors read from an image in the browser are converted to sRGB, so a Display P3 photo's most saturated colors come back clipped to the nearest sRGB value.
