Color
- Free forever
- No sign-up
- Instant results
RGB to HEX Converter
Convert R, G, B values to a hex color code in one step. Enter your three channel values, get the hex code back with a live preview of the actual color.
HEX value
—
When would you use this?
When you've got RGB values, maybe from a colour picker, a design token, or a brand guide, and you need the hex code for your stylesheet, this does the job in one step. Enter your R, G, and B values and get the hex code back with a live preview so you can see the actual color before you copy it.
Common RGB → HEX values
| RGB | HEX | Common color |
|---|---|---|
| rgb(255, 255, 255) | #FFFFFF | White |
| rgb(0, 0, 0) | #000000 | Black |
| rgb(255, 0, 0) | #FF0000 | Red |
| rgb(0, 255, 0) | #00FF00 | Lime |
| rgb(0, 0, 255) | #0000FF | Blue |
| rgb(128, 128, 128) | #808080 | Gray |
| rgb(255, 255, 0) | #FFFF00 | Yellow |
| rgb(0, 255, 255) | #00FFFF | Cyan / Aqua |
| rgb(255, 0, 255) | #FF00FF | Magenta / Fuchsia |
| rgb(255, 165, 0) | #FFA500 | Orange |
| rgb(128, 0, 128) | #800080 | Purple |