Tools › Build › Color Picker & Converter
🎯

Color Picker & Converter

Pick any colour and convert between HEX, RGB, HSL and CMYK — with transparency, contrast checks, harmonies, tints and shades.

🎯 HEX · RGB · HSL · CMYK
♿ Contrast check
💧 Eyedropper
🔒 Private
🎯

Pick a colour

Click the bar to open the picker, or use the sliders.

🔁

Colour values

Edit any field, or paste a value, to convert.

Accepts HEX (3, 4, 6 or 8 digits), rgb(), hsl(), cmyk() or a colour name such as tomato.

Text contrast (WCAG)
🎨

Colour harmonies

Click a swatch to make it your colour.

🎚

Tints & shades

Lighter to the left, darker to the right.

Advertisement
🕘

Recent colours

Colours you picked in this session.

How to use

  1. Click the large colour bar to open your browser’s colour picker, or move the RGB / HSL sliders. Use the alpha slider for transparency.
  2. Or type or paste a colour into any field — HEX, RGB, HSL, CMYK or a name like rebeccapurple — and the other formats update.
  3. Press the clipboard button next to a value to copy it, ready to paste into CSS, Figma or your design tool.
  4. Check the contrast boxes to see whether white or black text is readable on your colour, then explore harmonies, tints and shades and your recent colours.
  5. On Chrome and Edge, Pick from screen lets you sample a colour from anywhere on your display.

Colour formats explained

HEX (#RRGGBB) is the most common format on the web. RGB gives red, green and blue from 0 to 255. HSL describes hue (0–360°), saturation and lightness, which is the most intuitive for making a colour lighter, darker or more muted. CMYK (cyan, magenta, yellow, key/black) is used in print; the value here is a simple conversion, so check your printer’s colour profile for exact results. Colours with transparency are shown as 8-digit HEX or rgba() / hsla().

Contrast and accessibility

The contrast boxes show the WCAG ratio between your colour and white or black text. A ratio of 4.5:1 passes AA for normal text, 3:1 passes for large text, and 7:1 reaches AAA. The ratio uses the solid colour, so semi-transparent colours depend on the background they sit on.

Frequently asked questions

How do I find the HEX code of a colour?

Pick the colour with the picker or sliders and read the HEX field, or press “Pick from screen” in Chrome or Edge to sample a colour from any image or window.

How do I convert HEX to RGB or HSL?

Paste the HEX code into the HEX field. The RGB, HSL and CMYK fields update at once. You can also type into any other field to convert the opposite way.

What formats can I type in?

HEX with 3, 4, 6 or 8 digits (with or without #), rgb() and rgba(), hsl() and hsla(), cmyk(), or any CSS colour name such as tomato.

How do I make a colour transparent?

Lower the A (alpha) slider. The HEX output becomes an 8-digit code and the RGB and HSL values switch to rgba() and hsla().

What is the difference between HSL and RGB?

RGB mixes red, green and blue light. HSL describes the same colour as hue, saturation and lightness, which makes it easier to adjust, for example by keeping the hue and only making the lightness higher for a hover state.

Is the CMYK value accurate for printing?

It is a standard mathematical conversion from RGB. Professional printing uses colour profiles, so exact printed colours may differ. Use it as a starting point.

Can I share a colour?

Yes. The page address updates with your colour (for example #hex=fab60d), so you can copy the link from your browser.

Is this colour picker free?

Yes, it is free, needs no sign-up and runs entirely in your browser.