Color Picker

Choose a colour with the picker, the eyedropper (where your browser has one) or by typing it. You get every common format to copy, a shade scale, code snippets, and whether white or black text is readable on it.

Free, no sign-up. Everything runs in your browser.

Colour

HEX (3 or 6 digits), rgb() or hsl().

Pick or type a colour.

How to

Convert a colour in three steps

  1. Pick or type a colour

    Use the colour box, or type a HEX code, an rgb() value or an hsl() value. Typing takes priority over the picker.

  2. Copy the format you need

    Click HEX, RGB or HSL under the result to copy it to the clipboard.

  3. Check readability

    The contrast check shows whether white or black text passes the WCAG accessibility thresholds on this colour.

Working with colour values

  • Use HEX for most CSS. Use HSL or OKLCH when you want to make a colour lighter or darker by changing one number: OKLCH lightness follows what the eye sees more closely.
  • Normal body text needs a contrast ratio of at least 4.5:1 against its background to meet WCAG AA; large text needs 3:1.
  • The shade scale keeps your hue and spaces the steps evenly in perceived lightness. The step closest to your colour is replaced by your exact colour.
  • Short HEX codes such as #0a3 expand to #00aa33.

FAQ

Color picker questions

What is the difference between HEX, RGB and HSL?

They describe the same colour in different ways. HEX and RGB give the amounts of red, green and blue; HSL gives hue, saturation and lightness; OKLCH gives lightness, chroma and hue in a space designed to match how different two colours look, and modern CSS can use it directly.

Which colour formats can I type in?

HEX with 3 or 6 digits, with or without the # sign, rgb() or rgba() with values from 0 to 255, and hsl() or hsla() with a hue in degrees and saturation and lightness as percentages. Colour names such as red cannot be typed in, but the nearest CSS name is shown for the result.

Are the converted values exact?

HEX and RGB are exact. HSL, HSV and CMYK are rounded to whole numbers, so converting back can differ by one step in a channel. CMYK is an approximation made with simple maths, not a print profile.

What does the contrast ratio mean?

It compares how bright two colours are, from 1:1 (identical) to 21:1 (black on white). WCAG AA asks for 4.5:1 for normal text and 3:1 for large text; AAA asks for 7:1.

Does it handle transparency?

The alpha part of rgba() and hsla() is accepted but ignored, so the result is the opaque colour.

Is anything uploaded?

No. The colour is converted in your browser and nothing is sent to a server.