HEX to RGB Color Converter

Type a color code in any format and see it in all the others at once: HEX, RGB, HSL and CMYK. Works both ways, so you can also convert RGB to HEX.

HEX to RGB ConverterPrivate
  • HEX
  • RGB
  • HSL
  • CMYK

Runs in your browser. Your data is never uploaded to any server.

How to use the hex to rgb converter

  1. Type a color code in the first box. HEX, RGB and HSL formats are all accepted.
  2. Or change the R, G, B or H, S, L numbers to build a color.
  3. Copy the format you need with one click.

HEX, RGB, HSL and CMYK explained

HEX is a six-digit code made of three pairs (red, green, blue) in base 16, for example #FF6B4A. RGB writes the same three values as numbers from 0 to 255, here rgb(255, 107, 74). HSL describes the same color by hue, saturation and lightness, and CMYK is the ink-based format used for print.

Short HEX codes such as #F80 are expanded automatically to #FF8800.

Example

#FF6B4A = rgb(255, 107, 74) = hsl(11, 100%, 65%).

Frequently asked questions

How do I convert HEX to RGB?

Type the HEX code in the box. The RGB values appear right away. Each pair of HEX digits is one of the red, green and blue numbers.

How do I convert RGB to HEX?

Enter the R, G and B numbers (0 to 255) and copy the HEX code from the result.

Is CMYK accurate?

The CMYK values are a simple mathematical conversion. Printers use color profiles, so printed colors can look different.

Does it accept 3-digit HEX codes?

Yes. #F80 is the same as #FF8800.