Color Converter — All Formats at Once
Type any color value — a hex code, RGB, HSL, CMYK, or a CSS color name — and this converter shows every format at once: HEX, RGB, HSL, HSV, OKLCH, and CMYK.
Type any color — HEX, RGB, HSL, HSV, CMYK, OKLCH, or a CSS color name — and see every format at once.
About each format
HEX — six hex digits after a #, the standard way to write a color in HTML and CSS. RGB — red, green, and blue from 0 to 255, the way screens build color from light. HSL — hue, saturation, lightness; the easiest format for making shades and tints. HSV — hue, saturation, value; similar to HSL but with a different brightness scale, common in design software. CMYK — cyan, magenta, yellow, key (black); the ink model for print. Values here are screen approximations, not print-ready — real print needs an ICC color profile. OKLCH — a modern format that matches how eyes perceive lightness; used by Tailwind CSS v4.
One warning: CMYK values on this page are computed from the screen color, so they are only an estimate for print. If you are sending work to a printer, ask for a proof.
Frequently asked questions
How do I convert CMYK to HEX?
CMYK to hex is an approximation, not an exact conversion, because CMYK describes printer ink and hex describes screen light. Convert CMYK to RGB first (R = 255 × (1 − C) × (1 − K), and the same for G and B), then write the RGB values as hex. This page does it for you — but confirm the result against a printed proof, not just your screen.
How do I convert HSL to RGB?
Take the hue (0–360°), saturation, and lightness, and compute the red, green, and blue amounts from them. For example, hsl(0, 100%, 50%) is rgb(255, 0, 0). Type any HSL value in the box above and every format updates at once.
How do I convert HSV to HEX?
HSV (hue, saturation, value) is close to HSL but measures brightness as “value” instead of lightness. Convert HSV to RGB first, then write the RGB values as hex. This hub accepts HSV input and shows the hex code immediately.
What is OKLCH and why is it on this page?
OKLCH is a modern color format that describes colors the way human eyes actually see differences in lightness and vividness. Tailwind CSS v4 defines its whole palette in OKLCH. The hex values shown here are the nearest screen equivalent.
Can I type a color name instead of a code?
Yes. Type any of the 148 CSS color names — red, steelblue, rebeccapurple — and the converter will show its hex, RGB, HSL, and other formats.
Related tools
Hex to RGB · RGB to Hex · Hex to HSL · HSL to Hex · Color Picker