Skip to main content
Preparing workspace

Color Picker

Pick a color and get HEX, RGB, RGBA, HSL and CMYK codes, four palettes from one hue, plus live WCAG AA contrast checks at 4.5:1.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Color Picker

Professional real-time color picker with format conversions and palette generation.

This color picker lets you choose a colour by swatch, hex field, or hue, saturation and lightness sliders, and returns it as HEX, RGB, RGBA, HSL and CMYK simultaneously. Alongside the codes it generates four palettes from the same hue — complementary, analogous, triadic and a five-step monochromatic ramp — and checks the colour's contrast against white and against near-black to the WCAG AA threshold of 4.5:1. The last ten colours stay in a history strip for the session. Save up to 16 named swatches in your browser and copy them as CSS custom properties.

How to use Color Picker

  1. Set the colour under Select Color: click the swatch to open your system colour picker, or type straight into the hex field beside it, which starts on #14B8A6. The Hue slider below runs 0 to 360 degrees, Saturation and Lightness run 0 to 100 percent, and Alpha / Opacity reads out as a percentage in 1 percent steps.

  2. To take a colour from a picture, press Choose image under Pick from an image and click the spot you want, or use the arrow keys and Enter; where your browser supports it, Pick from screen samples any pixel on your display.

  3. Read the two Accessibility panels as you go — Accessibility (Light Text) scores the colour against white and Accessibility (Dark Text) against #111827, each showing the exact Ratio and a PASS AA badge at 4.5:1 or FAIL below it. Under Generated Palettes, clicking any swatch in the Analogous, Complementary, Triadic or Monochromatic strip makes that shade the current colour and copies its hex.

  4. Take the value from the Color Formats list, where HEX, RGB, RGBA, HSL and CMYK each have their own copy button, or use Copy CSS Styles in the Live Preview panel for a color and opacity pair, or Copy Tailwind Class for a bg-[#hex] utility. The History strip holds the last ten colours and clicking one restores it.

Why use Color Picker

  • Contrast checked while you pick

    White and near-black text are both scored against the current colour and marked pass or fail at 4.5:1, so unreadable choices surface at the moment you make them.

  • Four palettes from one hue

    Complementary, analogous, triadic and a monochromatic set are generated live by rotating hue and stepping lightness — no separate palette tool needed.

  • Steer by whichever channel suits

    Hue, saturation and lightness sliders sit next to a hex field, and all of them stay in sync with the same colour.

Common use cases

  • You are choosing a button colour and need to know, while you are still dragging the lightness slider, whether white label text will pass AA on it.
  • You need light and dark variants of one brand colour for hover and active states, and want a monochromatic ramp rather than guessing hex values.
  • You have an approximate colour in mind, want to nudge the hue by a few degrees, and need the CMYK reading for the print version of the same asset.

Frequently asked questions

Can I save colours and copy them as CSS variables?

Yes. Save up to 16 swatches in this browser, optionally name them, and click a swatch to restore its colour and opacity. Copy CSS variables creates a :root block with a custom property for each saved swatch.

Link to answer
Can I pick a colour from an image?

Yes. Under Pick from an image, choose a photo or screenshot and click any point on it, or focus the image and move the crosshair with the arrow keys (Shift moves 10 pixels) and press Enter. The picked colour becomes the current colour in every format. The image is read in your browser and never uploaded. In Chrome and Edge on a computer, Pick from screen also lets you sample any colour on your screen.

Link to answer
Which formats does it output?

Five: HEX, rgb(), rgba() with your alpha value, hsl() and cmyk(). Each has its own copy button, and the alpha slider runs from 0 to 100 percent in 1 percent steps.

Link to answer
How does it build the monochromatic palette?

By holding hue and saturation fixed and shifting lightness by plus and minus 15 and plus and minus 30 percentage points around your colour, giving five tones. Complementary rotates the hue 180 degrees, analogous uses plus and minus 30, and triadic uses 120 and 240.

Link to answer
What does the PASS AA badge mean?

That the colour reaches at least 4.5:1 contrast against that text colour, the WCAG AA minimum for normal body text. Contrast is measured against pure white and against a near-black (#111827) rather than absolute black, since that is closer to the text colour real interfaces use.

Link to answer
Does it remember colours I tried earlier?

Yes, the ten most recent colours are kept in a history strip for the session and clicking one restores it. Nothing is uploaded — the history lives only in the page you have open.

Link to answer