🎨 Color Converter
Convert between RGB, HEX, and HSL color formats with live preview. Click any code to copy.
Colors move between formats constantly — a designer hands you a HEX code, the CSS wants RGB, the print shop asks for CMYK, and the accessibility checker wants HSL so it can adjust lightness without shifting hue. This converter translates between HEX, RGB and HSL instantly, which is the part most people actually need, and it shows the values in a form you can paste straight into code.
Why HEX is not great for editing
A HEX value such as #10b981 is compact and easy to copy, but it is almost impossible to adjust by hand. Want a lighter version? You cannot simply add a number. HSL exists for exactly this reason: hue, saturation and lightness map to the way people describe color. To make a brand green 10 percent lighter, you change one value in HSL. In HEX you would need a color picker or a mental model of hexadecimal arithmetic.
The sRGB problem with CMYK
CMYK is a subtractive model for ink on paper; RGB is additive for light on screens. The two gamuts do not overlap perfectly, so some vivid screen colors cannot be printed and some printed colors have no on-screen equivalent. Any converter that claims a single exact CMYK value is giving you an approximation. If print accuracy matters, ask for the printer's ICC profile rather than trusting a web conversion.
Alpha channels and the eighth digit
An eight-digit HEX value — #10b981cc — adds an alpha channel where the last two digits encode opacity from 00 to ff. Plenty of older tools and browsers silently ignore the last two characters, which is why a semi-transparent color sometimes renders as fully opaque. If you need transparency and broad support, `rgba()` is the safer output, and modern CSS also accepts the slash syntax: `rgb(16 185 129 / 0.8)`.
Frequently asked questions
Does HEX include transparency?
Only the eight-digit form does. A standard six-digit HEX value like #10b981 is fully opaque. Appending two more digits sets alpha, but support for that form is inconsistent in older software.
Why is CMYK conversion always approximate?
Because RGB and CMYK describe different color spaces with different gamuts. A screen color may have no exact printed equivalent. Accurate conversion requires the specific printer profile, not a fixed formula.
What is the difference between HSL and HSV?
Both describe hue, saturation and brightness, but they define brightness differently. HSL maps lightness from black through the pure color to white, while HSV goes from black to the pure color directly. CSS uses HSL; many design tools default to HSV.