EyeDropper Playground

Sample any pixel on your screen and get its hex color. No permission prompt, no screenshot plumbing.

Click the button, then click any pixel, on this page, another app, anywhere. Press Esc to cancel.

History, click a swatch to copy its hex

Nothing picked yet.

The whole feature

async function pickColor() {
  const eyeDropper = new EyeDropper();
  const { sRGBHex } = await eyeDropper.open();
  // sRGBHex === "#3b82f6"
}

Honest notes