How to convert a color code
- Pick a color with the color picker, or choose a conversion type from the list.
- Type your values, for example a HEX code like #FF5733 or the three RGB numbers.
- Click Convert. The result appears together with the same color in every other format.
- Check the color in the live preview box.
Color formats explained
- HEX: a six-digit code such as #FF5733, used in HTML and CSS.
- RGB: red, green and blue from 0 to 255, the way screens mix light.
- HSL: hue (0 to 360 degrees), saturation and lightness. Easy to adjust by hand.
- HSV (also HSB): hue, saturation and value (brightness). Used in many color pickers.
- CMYK: cyan, magenta, yellow and black percentages, the model used in printing.
Common colors in every format
- Red: #FF0000 = rgb(255, 0, 0) = hsl(0, 100%, 50%) = cmyk(0%, 100%, 100%, 0%)
- Yellow: #FFFF00 = rgb(255, 255, 0) = hsl(60, 100%, 50%) = cmyk(0%, 0%, 100%, 0%)
- Green: #00FF00 = rgb(0, 255, 0) = hsl(120, 100%, 50%) = cmyk(100%, 0%, 100%, 0%)
- Blue: #0000FF = rgb(0, 0, 255) = hsl(240, 100%, 50%) = cmyk(100%, 100%, 0%, 0%)
- Orange: #FFA500 = rgb(255, 165, 0) = hsl(39, 100%, 50%) = cmyk(0%, 35%, 100%, 0%)
- Black: #000000 and White: #FFFFFF
A note about CMYK
The CMYK values here come from a standard mathematical formula. Real printing depends on the paper, the ink and a color profile, so a printed color can look different from the screen. For print jobs, convert with the color profile in your design software and check a proof.
Frequently Asked Questions
Is this color converter free?
Yes. It is free, with no signup and no limits.
Is my data uploaded?
No. All conversions happen in your browser.
Which format should I use on a website?
HEX and RGB are the most common in CSS. HSL is handy when you want to make a color lighter, darker or less saturated.
Does it support transparency (alpha)?
No. This tool converts opaque colors only.
More Color Converters