Pick any colour and convert between HEX, RGB, HSL and CMYK — with transparency, contrast checks, harmonies, tints and shades.
Click the bar to open the picker, or use the sliders.
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.
Click a swatch to make it your colour.
Lighter to the left, darker to the right.
Colours you picked in this session.
rebeccapurple — and the other formats update.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().
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.
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.
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.
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.
Lower the A (alpha) slider. The HEX output becomes an 8-digit code and the RGB and HSL values switch to rgba() and hsla().
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.
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.
Yes. The page address updates with your colour (for example #hex=fab60d), so you can copy the link from your browser.
Yes, it is free, needs no sign-up and runs entirely in your browser.