Color Picker
Pick a color with a visual picker or the on-screen eyedropper, and read its HEX, RGB and HSL values plus contrast.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
How to use this color picker
- Pick a colour visually, or type a HEX value directly.
- Use the eyedropper to sample a pixel from anywhere on screen.
- Read the HEX, RGB and HSL values, plus the contrast ratios.
- Copy any value with one click.
Which value to copy, and where it goes
| Format | Example | Use it in |
|---|---|---|
| HEX | #2563eb | CSS and most design tools |
| RGB | rgb(37, 99, 235) | Canvas, image data, older CSS |
| HSL | hsl(221, 83%, 53%) | Themes and programmatic palettes |
| Contrast ratio | 4.5:1 or higher | Checking that text stays readable |
The eyedropper only works in some browsers
Sampling pixels outside the page needs the EyeDropper API, which today means Chromium-based browsers.
Elsewhere the tool falls back to the standard colour input, which still covers swatches and typed values. That is a browser limit, not something the page can change.
What the contrast number tells you
Contrast ratio measures how much two colours differ in brightness, on a scale from 1:1 to 21:1.
The accessibility guidelines set thresholds: 4.5:1 for normal text, and 3:1 for large text or interface graphics.
The readout compares your colour with white and with black — the check you need before using it for text.
Picking a colour that actually works
- Pick the colour first, then check contrast, rather than adjusting blindly.
- For body text aim above 7:1 instead of sitting just over 4.5:1.
- Bright saturated colours rarely pass on white; darken them rather than giving up.
- Reuse the same colour at different lightness values for hover and pressed states.
Frequently asked questions
Can I pick a color from anywhere on screen?
In browsers that support the EyeDropper API you can sample any pixel on screen; otherwise use the color input.
What is the contrast readout?
It shows the WCAG contrast ratio of your color against white and black, useful for checking text readability.
Can I copy the values?
Yes. HEX, RGB and HSL outputs each have a copy button.
How do I check whether a colour is accessible?
Compare its contrast ratio against the colour it will sit on. The readout here shows the ratio against white and against black, which covers most cases.
Which value should I copy?
HEX for CSS, RGB for canvas or image code, and HSL when you plan to tweak lightness or saturation.
Does the tool remember recent colours?
No. Nothing is stored on a server and no history is kept between visits, so a refresh starts clean.
More Color tools
Color Converter
Convert colors between HEX, RGB, HSL and CMYK instantly, and copy any format with a single click.
Color Palette Generator
Generate complementary, analogous, triadic and tint/shade palettes from any base color, ready to copy.
Color Contrast Checker
Check the WCAG contrast ratio between any two colours and see whether your text passes AA and AAA.