You
might need to convert RGB colors
to hexadecimal notation in order to specify colors in an HTML
document.
Hexadecimal
colors are still in RGB notation, only they're written in six
consecutive hexadecimal digits with the first two representing
red, the second two representing green, and the last two representing
blue.
If
you can't convert base 10 into base 16 easily, here are a few
shortcuts: #00 is 0, #33 is 51, #66 is 102, #99 is 153, #CC is
204 and #FF is 255. These shortcuts also have the advantage of
being the values used to produce Netscape's color cube and consequently
colors made exclusively of these values will not dither in 256
color mode.