HEX to RGB Color Converter

Convert 3- or 6-digit hex color codes to RGB.

How to use it

  1. Enter a three- or six-digit HEX color.
  2. Select Convert to RGB.
  3. Copy the CSS rgb() value.

Common questions

How does shorthand HEX expand?
Each digit is doubled, so #abc becomes #aabbcc before conversion.
Does it accept alpha values?
This converter takes three or six HEX digits for RGB channels. Keep any alpha value separate.

The tool processes your input in this browser. It does not upload the input itself.