HEX to RGB converter

Type or paste a hex color code. The RGB and HSL values update as you type.

RGB
R,G,B
HSL

How HEX to RGB conversion works

A hex code is three pairs of hexadecimal digits: red, green and blue. Each pair is a number from 00 to FF, which is 0 to 255 in decimal. For #3B82F6: 3B = 59, 82 = 130, F6 = 246, so the color is rgb(59, 130, 246).

Three-digit codes like #F80 are shorthand — each digit is doubled, so it's the same as #FF8800.

Need a color from your screen first? Use the screen color picker.