Start with a worked example
Open the worked example for RGB. The example starts with HEX color = #0022E1.
HEX to RGB Calculator formula
#RRGGBB stores each 8-bit RGB channel as two hexadecimal digits.
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| HEX color | Follow the input format above | #0022E1 |
Worked example
The values listed in Inputs and units give rgb(0, 34, 225) for RGB.
- RGB
- rgb(0, 34, 225)
- Red
- 0
- Green
- 34
- Blue
- 225
Results and assumptions
The result details report Red, Green, Blue for the same inputs as the main answer.
