Want to change the color of the page's background, text or the links in the page? There's several of ways to do it. You can set the background color of your page, a table's row or cells, and layers. You can set the color of text and the color of any borders you set around pictures. All of these utilize the same method of specifying which color you want. The color values can be specified using either of two methods, by using the word for the color, or using a special hexadecimal number for the color value.
HEX COLOR VALUES
Three bytes are used to store the color value which means six hexadecimal numbers are used to set the color. Colors are set by mixing three colors: red, green and blue. You mix these colors by specifying a value from 0-255 expressed as a hexadecimal number (00 to FF). The closer the number is to zero, the darker that mixing color becomes until the overall appearance of the displayed color approaches black. Hexadecimal colors are always preceded by the American pound sign ('#') as in red: #FF0000.
HTML COLOR NAMES
The W3C's HTML 4.0 specifies only 16 standard colors that can be specified with a human-recognizeable name: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. Most browsers today support many more color names, but when specifying a color, it is usually easier to use a hexadecimal number as it allows you to mix red green and blue to get the color you want (the hexadecimal colors are supported in all browsers).
BASIC COLOR TABLE (Web-safe color table)
"Color safe" is a concept that has to do with displaying the color properly on computer monitors, LCD's and printers where the color choices are limited to 16 colors.
Color Name | Hex #RRGGBB |
DISPLAYS |
black | #000000 | |
gray | #808080 | |
darkgray | #A9A9A9 | |
silver | #C0C0C0 | |
olive | #808000 | |
maroon | #800000 | |
darkred | #8B0000 | |
brown | #A52A2A | |
firebrick | #B22222 | |
red | #FF0000 | |
orangered | #FF4500 | |
salmon | #FA8072 | |
sandybrown | #F4A460 | |
orange | #FF9900 | |
gold | #FFD700 | |
yellow | #FFFF00 | |
darkgreen | #006400 | |
teal | #008080 | |
green | #008000 | |
forestgreen | #228B22 | |
limegreen | #32CD32 | |
lightgreen | #F5F5DC | |
lime | #00FF00 | |
springgreen | #00FF7F | |
greenyellow | #ADFF2F | |
indigo | #4b0082 | |
navy | #000033 | |
darkblue | #00008b | |
slategray | #708090 | |
royalblue | #4169E1 | |
blue | #0000FF | |
slateblue | #6A5ACD | |
skyblue | #87CEE8 | |
lightblue | #ADD8E6 | |
darkcyan | #008B8B | |
aquamarine | #7FFFD4 | |
aqua | #00FFFF | |
cyan | #00FFFF | |
azure | #F0FFFF | |
purple | #990099 | |
darkmagenta | #8B008B | |
darkviolet | #9400D3 | |
plum | #DDA0DD | |
deeppink | #FF1493 | |
hotpink | #FF69B4 | |
fuschia | #FF00FF | |
magenta | #FF00FF | |
violet | #FF99FF | |
pink | #FFC0CB | |
saddlebrown | #8B4513 | |
goldenrod | #DAA520 | |
tan | #D2B48C | |
linen | #FAF0E6 | |
beige | #90EE90 | |
lightyellow | #FFFFE0 | |
ivory | #FFFFF0 | |
white | #FFFFFF |