Color Converter: HEX, RGB, HSL, CMYK
Convert a colour between HEX, RGB, HSL, HSV and CMYK. Type a value (#1e90ff, rgb(30,144,255) or a name like tomato) or use the picker, then copy the format you need.
- HEX, RGB, HSL, HSV, CMYK
- Colour picker
- Names and alpha
- No sign-up
How to use
- Type a colour in any format, or use the colour picker.
- The swatch shows the colour. Names such as tomato and values with alpha work too.
- Read the HEX, RGB, HSL, HSV and CMYK values.
- Press the copy button beside the format you want.
Colour formats explained
HEX (#1E90FF) is the usual web format: red, green and blue as two hex digits each. RGB writes the same three channels from 0 to 255. HSL describes hue (0-360 degrees), saturation and lightness, which makes it easier to make a colour lighter or darker. HSV is similar and used in many pickers. CMYK is a print model with cyan, magenta, yellow and black.
A note on CMYK
The CMYK value is a simple mathematical conversion. Real printers use colour profiles, so the printed colour can look different from the screen. To work with images, see the image compressor.
Frequently asked questions
How do I convert HEX to RGB?
Split the HEX code into three pairs and convert each from base 16 to decimal. #1E90FF becomes rgb(30, 144, 255). The tool does it for you.
Can I enter a colour name?
Yes. Any CSS colour name such as tomato, navy or rebeccapurple is understood.
Does it support transparency?
Yes. 8-digit HEX and rgba() or hsla() values keep their alpha.
Is CMYK exact?
No. It is a simple conversion from RGB. Print results depend on the printer and colour profile.