HEX to RGB Converter — CSS Colour | How to use and interpret results
Decode a three- or six-digit CSS HEX colour into red, green and blue channel values. Each pair of hexadecimal digits represents an integer from 0 through 255.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Numbers stay on your device. Nothing is sent to a server.
How to use this tool
Enter a HEX value and run the conversion. A transparency-bearing colour needs an alpha channel, which is separate from this three-channel RGB representation.
Results and examples
#2dd4bf becomes RGB 45, 212, 191. The shorthand #abc expands to #aabbcc, allowing the resulting CSS expression to be compared with the original colour.
Worked example
#2dd4bf becomes RGB 45, 212, 191. The shorthand #abc expands to #aabbcc, allowing the resulting CSS expression to be compared with the original colour.
Limitations
- Eight-digit alpha and colour-profile conversion are unsupported.
- An on-screen swatch does not predict a printer's physical output.
Fields
| Field | Guidance and constraints |
|---|---|
| Hex colour | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Which RGB values correspond to #2dd4bf?
#2dd4bf becomes RGB 45, 212, 191. The shorthand #abc expands to #aabbcc, allowing the resulting CSS expression to be compared with the original colour.
Does this handle transparent HEX colours?
Eight-digit alpha and colour-profile conversion are unsupported. An on-screen swatch does not predict a printer's physical output.
Related tools
You do not need to start over. Continue with the tool that fits your next step.