Convert a HEX colour code to RGB values. Type a code such as FF6600 or #f60 and see the red, green and blue numbers with a live preview.
| HEX | – |
| RGB | – |
How it works
A HEX code is three pairs of base-16 digits for red, green and blue. To convert, change each pair to decimal: FF is 255, 66 is 102 and 00 is 0, so #FF6600 is rgb(255, 102, 0). Three-digit codes such as #F60 are shortcuts where each digit is repeated.
Example
#0080FF is rgb(0, 128, 255).
Frequently asked questions
How do I convert HEX to RGB?
Split the code into pairs and convert each pair from hexadecimal to a number from 0 to 255.
What does #F60 mean?
A short form of #FF6600.
Can I use the result in CSS?
Yes: rgb(255, 102, 0).
More free tools: RGB to HEX converter · Color converter · All free tools
Everything runs in your browser.