How to convert HEX to RGB
- Type or paste the HEX code into Color. The # is optional.
- The RGB value appears on the right, with HSL, HSV and CMYK too.
- Click the RGB value to copy it.
Reading a HEX code
A HEX color is three numbers written in base 16, where the digits run 0 to 9 and then a to f. Each pair sets one channel: the first is red, the second green, the third blue. 00 means none of that color and ff means all of it, so #ff0000 is pure red, #ffffff is white and #000000 is black.
Common colors
| HEX | RGB | Color |
|---|---|---|
#ffffff |
rgb(255, 255, 255) | White |
#000000 |
rgb(0, 0, 0) | Black |
#ff0000 |
rgb(255, 0, 0) | Red |
#00ff00 |
rgb(0, 255, 0) | Lime |
#0000ff |
rgb(0, 0, 255) | Blue |
#808080 |
rgb(128, 128, 128) | Gray |