
|
 |
 |

You want a splash of red here, some blue there. What's the web without color! In order to get that color onto your website you must first understand hexadecimal numbers. It's really not as intimidating as it sounds. Our everyday numbering system is based on the number 10 so there are ten distinct numerical values (0-9), while the hexadecimal system is based on the number 16 so there are sixteen values (0-F). View the example below for a side-by-side comparison of both numerical systems.
 |
 |
Decimal |
 |
0 |
 |
1 |
 |
2 |
 |
3 |
 |
4 |
 |
5 |
 |
6 |
 |
7 |
 |
8 |
 |
9 |
 |
10 |
 |
11 |
 |
12 |
 |
13 |
 |
14 |
 |
15 |
 |
 |
 |
Hexadecimal |
 |
0 |
 |
1 |
 |
2 |
 |
3 |
 |
4 |
 |
5 |
 |
6 |
 |
7 |
 |
8 |
 |
9 |
 |
A |
 |
B |
 |
C |
 |
D |
 |
E |
 |
F |
 |
 |
The reason why you need to understand the hexadecimal system is because HTML uses this system in defining color.
The next step in understand HTML's color format is that any color on your screen is made up of 3 basic colors there are: Red, Green, and Blue. This is the RGB color scheme.
Now, here is an example of the code for white in HTML: #FFFFFF.
The pound symbol "#" is used to differentiate between the base 10 decimal system and the base 16 system. Following the pound symbol is a 6-digit number. The first two digits are the amount of red; the third and fourth digits are the amount green, and the fifth and sixth are the amount of blue.
Although there are hundreds of color combinations you can make only 216 are consistent across browsers and platforms these 216 colors make up the "web safe" color palette. The web safe colors are made up of pairs of 00, 33, 66, 99, CC, and FF for the R, G, or B values.
Graphic programs such as Photoshop, Paintshop Pro, and others can give you the hex value of the color you select.
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|