Tools / HEX to RGB converter
HEX to RGB converter
Paste a HEX value and get the RGB result right away, plus every other format.
How HEX converts to RGB
Split the hex code into three pairs of digits (red, green and blue). Convert each pair from base 16 to a number from 0 to 255. For #1E90FF, 1E is 30, 90 is 144 and FF is 255, so the RGB value is rgb(30, 144, 255).
Common colors in HEX and RGB
| Color | HEX | RGB |
|---|---|---|
| red | #FF0000 | rgb(255, 0, 0) |
| orange | #FFA500 | rgb(255, 165, 0) |
| gold | #FFD700 | rgb(255, 215, 0) |
| lime | #00FF00 | rgb(0, 255, 0) |
| teal | #008080 | rgb(0, 128, 128) |
| navy | #000080 | rgb(0, 0, 128) |
| indigo | #4B0082 | rgb(75, 0, 130) |
| purple | #800080 | rgb(128, 0, 128) |
| hotpink | #FF69B4 | rgb(255, 105, 180) |
| coral | #FF7F50 | rgb(255, 127, 80) |
| chocolate | #D2691E | rgb(210, 105, 30) |
| gray | #808080 | rgb(128, 128, 128) |
| silver | #C0C0C0 | rgb(192, 192, 192) |
| black | #000000 | rgb(0, 0, 0) |
How to use it
Three quick steps.
- Type or paste a HEX value (the # is optional).
- Read the RGB result instantly.
- Click any value to copy it.
Good to know
Get better results.
- You can also paste a hex code, rgb(), hsl() or a color name. The tool understands them all.
- Every other format is shown too, so one lookup covers all your needs.
- Values are rounded to whole numbers where it makes sense.
Common questions
How do I convert HEX to RGB?
Split the hex code into three pairs of digits (red, green and blue). Convert each pair from base 16 to a number from 0 to 255. For #1E90FF, 1E is 30, 90 is 144 and FF is 255, so the RGB value is rgb(30, 144, 255).
Is this HEX to RGB converter free?
Yes. It is free, private and runs in your browser, so your colors are never uploaded.
Can I convert from other formats too?
Yes. Enter a hex code, rgb(), hsl() or a CSS color name and you still get every format.
More tools
Keep going with a related tool.