HEX to RGB converter
Type a hex colour code such as #FF8000 and this tool shows its red, green and blue values from 0 to 255, along with the CSS rgb value.
Results
Enter your values to see the result.
About this tool
It is useful for web design, graphics and matching colours between programs.
- How it is calculated
- a hex colour is three pairs of hexadecimal digits for red, green and blue (00 to FF = 0 to 255). A short code like #F80 stands for #FF8800.
- Worked example
- With Hex colour: #FF8000, the result is: Red: 255; Green: 128; Blue: 0; CSS: rgb(255, 128, 0).
- Good to know
- A hex colour has three pairs of hexadecimal digits for red, green and blue, from 00 to FF, which is 0 to 255. A short code such as #F80 stands for #FF8800. The tool does not show transparency.
Frequently asked questions
What does a hex colour code mean?
It is three pairs of digits that give the amount of red, green and blue. In #FF8000, FF is full red, 80 is about half green and 00 is no blue.
Can I use the short form like #F80?
Yes. Each digit is doubled, so #F80 means #FF8800, and the tool accepts both the short and the long forms.