Computers and Software calculators

Colour code converter

Enter a HEX, RGB or HSL colour code; convert it to the other formats.

Enter your details

Pick a colour from the box on the left or type a code. Examples: #7B1F2E, rgb(123, 31, 46), hsl(350, 60%, 30%)

Result
–

Advertisement
About this calculator

How is it calculated?

A HEX code is the hexadecimal form of the red, green and blue (RGB) values: #7B1F2E → 7B = 123, 1F = 31, 2E = 46. HSL describes the same colour by hue (0–360°), saturation and lightness. CMYK gives the ink proportions used in print.

Example

#7B1F2E = rgb(123, 31, 46).