Skip to content
Util.Ninja

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.

How to use

  1. Type a colour in any format, or use the colour picker.
  2. The swatch shows the colour. Names such as tomato and values with alpha work too.
  3. Read the HEX, RGB, HSL, HSV and CMYK values.
  4. 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.

More free tools

Image to Base64 converterImage to Base64 and backFavicon generatorMake favicon.ico and app iconsPNG to JPG converterConvert PNG images to JPGJWT decoderRead JSON Web TokensRegex testerTest and debug regular expressionsText compareFind differences in two textsHash generatorMD5, SHA-1, SHA-256 hashesCron expression generatorBuild and explain cron schedulesQR code generatorLinks, Wi-Fi, contacts, PNG & SVG