FYI:
HTML uses hexidecimal notation. That means that instead of counting from 0 to 9 before moving into two digits, it goes from 0 to 15. 10 to 15, however, are written as A to F. So, to count from 1 to 20 would be something like:
01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14
When you have two digits, the first digit represents multiples of 16, just like the first digit in two digit decimal numbers represent multiples of ten.
So, to translate 245 into hex, divide by 16 for the first digit, then use the remainder for the second digit.
ie: 245 divided by 16 = 15 remainder 5.
15 is F. 5 is 5.
So 245 is F5.
Do that for Red, Green and Blue, stick them together in that order, and you have a HTML color:
245 Red, 245 Green, 245 Blue becomes
F5 Red, F5 Green, F5 Blue becomes
#F5F5F5.
If you want to make a 'Web Safe' color, both digits have to be the same, and they have to be either 00, 33, 66, 99, CC or FF. Find one close, and round your values up or down.