Screen Color Eyedropper
Explains how to use the browser EyeDropper API to pick a color from any point on the screen.
Copiado!
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?
Can I sample outside the browser window?
Does it average a region?
Related Tools
Color Picker
Pick a color and get its HEX, RGB and HSL values with one click to copy.
Restaurant Bill Itemized
Each person picks the items they consumed; the system sums values, applies proportional service fee and shows each person's share.
WCAG Contrast Checker
Check the contrast between text and background colors per WCAG 2.1 guidelines. Shows the ratio and AA/AAA levels for normal and large text.
Blank Screen
Fully white screen for projecting, cleaning the display or using as a focus background. Supports dark mode.
Color Blindness Simulator
See how an image appears to people with protanopia, deuteranopia, tritanopia or achromatopsia. Accessibility tool for designers and developers.
Color Shades Generator
Generate shades and tints of any color. Click to copy the HEX, RGB or HSL code. Perfect for design systems and UI development.