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
async function pickColor() {
const eyeDropper = new EyeDropper();
const { sRGBHex } = await eyeDropper.open();
// sRGBHex === "#3b82f6"
}
'EyeDropper' in window and fall back to <input type="color">.