Hexadecimal Color Worksheet

What is the value of each:

100=
101=
102=
103=
160=
161=
162=
10n=
Xn
=

What are the digits for a base16 number?

12 base10 = ___ base16
18 base10 = ___ base16

44 base10 = ___ base16
___ base10 = 33 base16
___ base10 =  19 base16


There are two ways to define color in CSS. One is an RGB definition, e.g.,

   
.myclass {color: rgb(255,0,0);}

The above example is for the color red. The numbers are in base10 and range from 0-255.

The other way to define color is with hexadecimal:


.myclass {color: #FF0000;}

This sample is also red. Here, the red is the first two digits, the green is the next two, and the blue the final two digits. Each ranges from 00-FF, which is hexadecimal for 0-255 (base-10).

#3300FF is what in rgb form?

rbg(18,255,0) is what in hexadecimal form?

Recent site activity