Color

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.

Contrast vs white: 3.68:1
Contrast vs black: 5.71:1

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

FormatExampleUse it in
HEX#2563ebCSS and most design tools
RGBrgb(37, 99, 235)Canvas, image data, older CSS
HSLhsl(221, 83%, 53%)Themes and programmatic palettes
Contrast ratio4.5:1 or higherChecking 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