Hex to RGB Converter

Paste or type a hex code — or pick a color with the swatch — and the RGB and HSL values update live.

#7c3aed
HEX
#7c3aed
RGB
rgb(124, 58, 237)
HSL
hsl(262, 83%, 58%)
Channels
R 124 · G 58 · B 237

HEX to RGB conversion reads the six characters of a hex code and turns them into the red, green and blue numbers a browser actually uses to display the color. Type a code, or pick the color visually and let the converter write the hex for you.

Frequently asked questions

Type or paste a hex code into the input, or click the swatch at the start of the field to pick a color visually. The red, green and blue channels, plus the HSL equivalent, are shown instantly.

Good to know

  • A six-digit hex code can describe 16,777,216 different colors.
  • In 3-digit shorthand, each digit is doubled — #ABC equals #AABBCC.

Tools that pair with Hex to RGB

Hex to RGB is one of 33 single-page tools in this workspace. These are the ones that carry the job on — the color value moves between them, so nothing gets retyped or re-uploaded.

Guides for Hex to RGB

Longer reads for the questions that come up around hex to rgb.