Color Converter (HEX · RGB · HSL)
Type a color code or pick a color and get it in the other formats right away.
HEX
RGB
HSL
HSV
CMYK
🔒 Your input is never sent to a server.
How to use
- Enter any of
#3366cc,rgb(51, 102, 204)orhsl(220, 60%, 50%). You can also use the color picker. - Use the copy button next to a result to copy that format. Below you will see the contrast ratio with white and black text.
About the formats
- HEX: #RRGGBB, two hexadecimal digits each (00–FF). The 3-digit shorthand (#36c) works too.
- RGB: red, green and blue from 0 to 255. HSL: hue (0–360°), saturation, lightness. HSV: hue, saturation, value.
- CMYK: the four print inks. These values come from a plain formula and can differ from real print colors.
- Contrast uses WCAG relative luminance; a ratio of 4.5 : 1 or more passes AA for normal text.
FAQ
Why does CMYK differ from my print result?
Real printing depends on the ICC color profile, ink and paper. The values here are a formula for reference.
Does it support transparency (alpha)?
No. Only opaque colors are converted; the alpha in rgba() or hsla() is ignored.
What does a contrast ratio of 4.5 mean?
Under the WCAG accessibility guidelines, normal text should have at least 4.5 : 1 contrast with its background to be easy to read; large text needs 3 : 1.
Results are for reference only and accuracy is not guaranteed. Terms & disclaimer