Color Picker & Eyedropper
Pick a color with the browser eyedropper or enter HEX/RGB values; copy HEX, RGB and HSL.
How to Use
- Select or drag and drop your text into the Color Picker & Eyedropper workbench above.
- Adjust the settings or options as needed — all processing runs locally in your browser without uploading to any server.
- Review or copy the extracted result directly from the output panel.
What is Color Picker & Eyedropper?
A color picker and eyedropper lets you sample colors either directly from anywhere on your screen (in browsers supporting the Chromium EyeDropper API) or by clicking any pixel on a locally loaded image, displaying HEX, RGB, and HSL values together. Designers, front-end engineers, and QA testers use it to grab exact color codes without opening desktop design apps.
How It Works
On mount, a useEffect checks whether window.EyeDropper exists (Chrome/Edge 95+); clicking Pick from screen launches window.EyeDropper().open() to return sRGBHex. Alternatively, uploading any image renders it onto a max-400px HTML5 Canvas where clicking any pixel invokes ctx.getImageData(x, y, 1, 1) and converts RGB to lowercase HEX and HSL via rgbToHex/rgbToHsl locally.
Common Use Cases
- Cross-app screen sampling — grab live HEX/RGB/HSL codes from desktop windows or browser pages using the EyeDropper API
- Cross-browser image inspection — upload mockups or screenshots in Firefox/Safari and click pixels via the Canvas fallback
- CSS format translation — copy a single sampled color simultaneously formatted as HEX, rgb(), and hsl()
- Pixel-coordinate verification — verify exact canvas (x, y) sample coordinates when inspecting artwork offline
Technical Details
Hydration-safe EyeDropper detection inside useEffect; falls back gracefully to HTML5 Canvas 2D getImageData(x, y, 1, 1) downscaled to maxDim = 400px. Outputs HEX, rgb(r,g,b), hsl(h,s%,l%), and sample source.
FAQ
Is this Color Picker & Eyedropper free?
Yes, completely free. No signup required.
Does this tool upload my data?
No. All processing happens locally in your browser. Your data never leaves your device.