Color Converter
Convert color codes between HEX, RGB, HSL, and CMYK formats.
Enter HEX, RGB, HSL, or CMYK. Percent signs are required for HSL and CMYK.
HEX
#2A5EE8
RGB
rgb(42, 94, 232)
HSL
hsl(224, 81%, 54%)
CMYK
cmyk(82%, 59%, 0%, 9%)
How to use
Enter HEX, rgb(255, 0, 0), hsl(0, 100%, 50%), or cmyk(0%, 100%, 100%, 0%) to see equivalent values. HSL saturation/lightness and all CMYK components require percent signs.
Example
Input
#FF0000
Output
RGB(255, 0, 0)
Limitations
Alpha channels and named colors are not supported. CMYK is a mathematical approximation without a printer color profile, so printed colors may differ.
Frequently Asked Questions
Can I use color names?
No, this tool requires valid numeric or hex codes (e.g., #FFFFFF).