How to use the color converter
Type or paste a color into the box, or pick one with the color picker. Every format updates instantly; click Copy next to the one you need. The link in your address bar also updates, so you can share a color.
Color formats explained
- HEX (
#4f46e5): red, green and blue as two hexadecimal digits each. The most common format on the web. - RGB (
rgb(79, 70, 229)): the same three channels as numbers from 0 to 255. - HSL (
hsl(243, 75%, 59%)): hue (0–360° on the color wheel), saturation and lightness. Easy to adjust by hand: change only the lightness to get a lighter or darker version. - HSV / HSB: hue, saturation and value (brightness). Used by many design apps' color pickers.
- CMYK: cyan, magenta, yellow and black ink percentages, used for print.
Extra formats for developers
- HEX (short): the three-digit form, such as
#fff, shown when your color has one. - RGB (modern CSS): the newer space-separated syntax, such as
rgb(79 70 229). - RGB 0–1: each channel as a decimal from 0 to 1, as used in shaders and many graphics libraries.
- Integer: the whole color as one number, handy for databases and some game engines.
The page also shows the contrast of your color on white and on black, with a link to the contrast checker for a full check.
FAQ
Is the CMYK value exact for printing?
It's the standard mathematical conversion. Professional printing uses color profiles that depend on the paper and printer, so ask your print shop for the final values if color accuracy matters.
Why do HSL values round slightly differently in other tools?
Converting between formats involves rounding. A difference of one unit is normal and invisible to the eye.
Which color names can I type?
Any named color that CSS knows, such as teal, coral or rebeccapurple.
What about transparency?
The converter works with solid colors, so a transparency (alpha) value in your input is left out of the results.