Color Converter โ€“ HEX to RGB, HSL & CMYK

Convert any colour between HEX, RGB, HSL and CMYK, pick one visually, and check its text contrast โ€” tap any code to copy.

Last updated:

Tints & shades

Colour code converter

Got a brand colour as a HEX code but your app wants RGB โ€” or a designer sent HSL? This colour converterturns any colour into HEX, RGB, HSL and CMYK at once. Type a code in any format, or use the colour picker, and tap a value to copy it. It also shows the WCAG contrast against white and black text so you know which is readable, plus a strip of tints and shades for hover states and backgrounds.

How to use it

  1. Type a colour code (e.g. #FF9933, rgb(255,153,51) or saffron) or use the picker.
  2. Read every format in the table โ€” tap one to copy.
  3. Check contrast and pick a tint or shade if you need one.

Example

India-flag saffron #FF9933 is rgb(255, 153, 51), hsl(30, 100%, 60%) and roughly cmyk(0, 40, 80, 0). Black text on it has a contrast of about 10:1 โ€” far more readable than white (about 2:1). Build a full scheme with the colour palette generator, or take a colour from a photo with the image colour picker.

Rate this tool

Frequently asked questions

How do I convert HEX to RGB?
Split the 6-digit HEX code into three pairs and convert each from base 16 to base 10. #FF9933 โ†’ FF = 255, 99 = 153, 33 = 51, so rgb(255, 153, 51). The converter does this instantly in both directions.
What is HSL?
Hue (0โ€“360ยฐ around the colour wheel), saturation (0โ€“100% grey to vivid) and lightness (0โ€“100% black to white). Itโ€™s easier to tweak by hand than RGB โ€” to make a colour lighter, just raise L.
Why is CMYK only approximate?
Printers mix cyan, magenta, yellow and black inks, and the exact result depends on the paper and the printerโ€™s colour profile. The CMYK here is the standard mathematical conversion โ€” ask your printer for a proof for brand colours.
What does the contrast check mean?
Itโ€™s the WCAG contrast ratio of your colour against white and black text. 4.5:1 or more passes AA for normal text; 3:1 is enough for large headings. It helps keep your design readable.