1001Ferramentas
🎨Utilities

Screen Color Eyedropper

Explains how to use the browser EyeDropper API to pick a color from any point on the screen.

Clique num campo de saída para copiar. O conta-gotas exige Chrome/Edge 95+; o campo HEX funciona em qualquer navegador.

O navegador (Chromium 95+) oferece a API EyeDropper:

const ed = new EyeDropper();\nconst r = await ed.open();\nconsole.log(r.sRGBHex); // ex: "#3b82f6"

O usuário precisa permitir e clicar em algum ponto da tela. Não funciona em Safari e Firefox no momento.

Grab the color of any screen pixel

You spotted a color in a PDF, in a paused video frame, or in an application that is not even a browser window, and you need the HEX code to reproduce it. The usual route is a screenshot, an image editor, and its eyedropper tool, which burns a few minutes per color. The browser itself has a shortcut for this.

The pick button calls the EyeDropper API: your cursor turns into a crosshair, you click anywhere on screen, and the browser hands back the HEX of that pixel. The page then fills the color swatch and converts the value into RGB and HSL across the three output fields. There is a manual path too, since typing a HEX into the input accepts both the three-digit shorthand and the six-digit form and runs the same conversion.

The API ships in Chrome and Edge from version 95 and in Chromium-based browsers generally. Firefox and Safari do not implement it, so the page shows an amber notice and falls back to the manual HEX field. Clicking any output field copies its value to the clipboard. The reading covers exactly one pixel, so on a JPEG-compressed or noisy photo neighboring pixels differ noticeably: aim at a flat area. Nothing leaves your machine.

Frequently asked questions

Does it work in Firefox or Safari?
No, neither implements the EyeDropper API yet. The page detects that, shows a notice, and you can still use the manual HEX field.
Can I sample outside the browser window?
Yes. While the crosshair is active, a click reads any point on screen, including other applications or the desktop wallpaper.
Does it average a region?
No, it reads exactly one pixel. If you need the average color of a textured area, that calculation has to happen somewhere else.

Related Tools