HEX to RGB
Convert a three- or six-digit hex color into decimal RGB channels.
Make this result useful
Use it now, or keep a copy for later. We never save your tool input automatically.
How to use this tool
Enter #RGB or #RRGGBB and process the color.
Important to know
Convert a three- or six-digit hex color into decimal RGB channels.
Alpha channels and named CSS colors are not supported.
Formula and methodology
Expand each one-digit channel if needed, then convert each base-16 channel pair to decimal.
Example
#FF0080 becomes rgb(255, 0, 128).
Frequently asked questions
How does #F08 expand?
Each digit is doubled: #F08 becomes #FF0088.