Color Picker & Converter – HEX, RGB, HSL

Pick a color and convert between HEX, RGB, HSL, HSV and CMYK. See contrast against black and white text for accessible designs.

Contrast

Shades

How to convert a color

  1. Pick a color with the color picker, or paste any color code: HEX, RGB, HSL or a color name.
  2. See the same color in HEX, RGB, HSL, HSV and CMYK. Click Copy next to the format you need.
  3. Check the contrast ratio with white and black text to make sure your design is readable.
  4. Click any shade to explore lighter and darker versions.

Color formats explained

HEX codes are six hexadecimal digits: two each for red, green and blue, from 00 to ff. RGB writes the same three numbers in decimal, 0 to 255. HSL uses hue (0–360° around the color wheel: 0 red, 120 green, 240 blue), saturation (0% gray to 100% vivid) and lightness (0% black to 100% white). HSV (or HSB) is similar to HSL and is used by many design apps' color pickers.

Frequently asked questions

What's the difference between HEX, RGB and HSL?

They're three ways of writing the same color. HEX (#ff8800) is RGB written in hexadecimal and is the most common in web design. RGB gives the red, green and blue amounts from 0 to 255. HSL describes hue (the color wheel angle), saturation and lightness, which makes it easy to create lighter or darker versions.

What is CMYK used for?

CMYK (cyan, magenta, yellow, black) is how printers mix ink. Screens use RGB light, so the CMYK values here are a straightforward conversion. For professional print work, your printer's color profile may give slightly different numbers.

What contrast ratio do I need?

The WCAG accessibility guidelines ask for at least 4.5:1 between normal text and its background (level AA), and 7:1 for level AAA. Large text (about 24px, or 19px bold) needs 3:1.

Which color formats can I paste?

HEX with 3, 4, 6 or 8 digits (with or without #), rgb() and rgba() in both comma and space syntax, hsl() and hsla(), and common color names such as coral or navy.

Related tools