RGB to Hex Converter
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Convert RGB values (0 to 255) to a hex color code.
Result
Result
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link: FiftyCalc may earn a commission if you buy through it. This does not change the result.
Corel sells CorelDRAW graphic design and technical illustration software. Visit Corel
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Red, green, blue (0 to 255): type the text to use.
- Read the result: Result.
How this calculator works
Each channel from 0 to 255 is written as two hex digits, red then green then blue (W3C CSS Color Module).
Worked example
| Red, green, blue (0 to 255) | 30, 144, 255 |
|---|
| Result | #1E90FF |
|---|
Frequently asked questions
What is rgb(0, 0, 0) in hex?
#000000, black.