How to Pick Any Color from Your Screen
Color picking โ sampling an exact color value from a visual reference โ is one of the most frequent tasks in design and development. Whether you're matching a brand color from a PDF, grabbing a shade from a photograph, or identifying a color on a website, a color picker gives you the exact HEX, RGB, or HSL value instantly.
- Use a color picker to grab exact HEX, RGB, and HSL values from any element on your screen.
- Covers browser eyedropper api.
- Covers operating system color pickers.
- Covers picking colors from images.
- Covers understanding the output formats.
Browser EyeDropper API
Modern browsers (Chrome 95+, Edge 95+) have a native EyeDropper API that lets web apps sample colors from anywhere on screen. The Color Picker tool uses this API โ click the eyedropper button, then click any pixel on your screen to grab its color. The sampled value is returned in HEX, RGB, HSL, and CMYK formats simultaneously.
Operating System Color Pickers
macOS has Digital Color Meter (built in) and the color picker in any app's color panel. Windows has PowerToys Color Picker (Win+Shift+C). Both sample colors from anywhere on screen, including across windows and applications. These are useful when you need to sample from native apps, PDFs, or images outside the browser.
Picking Colors from Images
For extracting multiple colors from an image โ not just one pixel โ use the Image Color Extractor instead. It analyzes the entire image and returns a ranked palette of dominant colors. For single-pixel precision (matching an exact shade from a design comp), the Color Picker's eyedropper is more accurate.
background-size animation or @property registered custom properties instead.Understanding the Output Formats
The Color Picker returns the sampled color in multiple formats: HEX (#FF6B6B) for CSS and design tools, RGB (255, 107, 107) for programmatic use, HSL (0ยฐ, 100%, 71%) for intuitive hue/saturation adjustment, and CMYK for print design. Each format represents the same color โ choose the one your workflow needs.