Version #4.0
How to convert from RGB to Hexadecimal with a calculator...
To convert a red, green, or blue value to hexadecimal, you must
first divide the value by 16, subtract the integer (this becomes the
first value of the two-character set) and multiply the remainder by 16
for the second value.
Here's how I got the color for one of my sites...
In this example...
- Red = 212
- Blue = 159
- Green = 85
Red to Hexadecimal...
- 212 / 16 = 13.25
- 13 = D
- .25 * 16 = 4
Red 212 = Hexadecimal D4
Green to Hexadecimal...
- 159 / 16 = 9.9375
- .9375 * 16 = 15
- 15 = F
Green 159 = Hexadecimal 9F
Blue to Hexadecimal...
- 85 / 16 = 5.3125
- .3125 * 16 = 5
Blue 85 = Hexadecimal 55
Hexadecimal #D49F55 is this color.
BASE 10 |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
BASE 16 EQUILIVANTS |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
A color chart taken from Doug
Jacobson's RGB Color Chart Page

I used to have a 96 color table with their codes right here, but I
decided that the above graphic met most people's needs (and saved time
and frustration) so I took it off.
|