HEX to RGB converter
Type a HEX code to get RGB, plus every other code, the nearest RAL and Pantone, and the closest paint.
HEX code
RGB 212, 85, 30
All codes
- HEX
- #D4551E
- CMYK
- 0%, 60%, 86%, 17%
- HSL
- 18°, 75%, 47%
- HSV
- 18°, 86%, 83%
- LAB
- 52.5, 47.6, 54.0
- Nearest RAL
- 2009 Traffic Orange
- Nearest Pantone
- 1665C
- Closest paint
- Hempel 57100, Hempel
How HEX becomes RGB
- Split #D4551E into three pairs: D4, 55 and 1E.
- Read each pair as a base-16 number: D4 is 13 × 16 + 4 = 212.
- 55 becomes 85 and 1E becomes 30, so the color is RGB 212, 85, 30.
HEX and RGB are the same numbers written two ways, so this conversion is exact.
RGB to HEX converterCommon colors
| Color | HEX | RGB |
|---|---|---|
| RAL 9010 | #F0EDE1 | 240, 237, 225 |
| RAL 9016 | #F0F1EA | 240, 241, 234 |
| RAL 9005 | #0E0E10 | 14, 14, 16 |
| RAL 7016 | #383E42 | 56, 62, 66 |
| RAL 7035 | #C5C7C4 | 197, 199, 196 |
| RAL 3020 | #B81D13 | 184, 29, 19 |
| RAL 5015 | #0B7BB0 | 11, 123, 176 |
| RAL 6018 | #599A39 | 89, 154, 57 |
| RAL 1023 | #EFB700 | 239, 183, 0 |
| RAL 2004 | #DE5306 | 222, 83, 6 |
When you need HEX to RGB
A HEX code is compact, but many tools, animations and CSS functions such as rgb() and rgba() need the separate red, green and blue values. Each pair of HEX digits becomes one number from 0 to 255.
Questions
What about three-digit HEX codes?
Each digit is doubled: #36C means #3366CC, which is RGB 51, 102, 204.
Where does transparency go?
An eight-digit HEX like #3366CC80 adds alpha as its last pair; in RGB it becomes rgba(51, 102, 204, 0.5).