Color Converter (HEX / RGB / HSL / CMYK)
Convert a color between HEX, RGB, HSL, and CMYK. Accepts #hex,
rgb(r, g, b), or hsl(h, s%, l%). Runs entirely in your browser.
How it works
HEX and RGB describe a color as red/green/blue channel values — the same color, two notations. HSL (hue, saturation, lightness) describes color the way a designer thinks about it: which color, how vivid, how light or dark. CMYK (cyan, magenta, yellow, key/black) is the subtractive model used for print — it's a lossy approximation from RGB, since printers can't reproduce every RGB color.
Examples
| Input | HEX | RGB | HSL |
|---|---|---|---|
#2563eb | #2563eb | rgb(37, 99, 235) | hsl(220, 83%, 53%) |
rgb(220, 38, 38) | #dc2626 | rgb(220, 38, 38) | hsl(0, 73%, 51%) |