Colour converter
Convert between hex, RGB, HSL, HSV and CMYK with a live swatch.
About this tool
A colour can be written as hex, RGB, HSL, HSV or CMYK. The same colour looks different in each notation, and converting by hand is easy to get wrong in the last digit.
Paste or pick a colour to see the other forms and a live swatch. The contrast tool on this site checks whether text is readable against it; this page only converts.
Worked example
#336699 is rgb(51, 102, 153). In HSL it is hsl(210, 50%, 40%), and in CMYK it is about 67% cyan, 33% magenta, 0% yellow and 40% black.
Common searches
- colour converter
- hex to rgb
- rgb to hex
- hex to hsl
- cmyk converter