Template 1
Template 2
Template 3
Template 4
Color 2
Color3
Color 4
Special Char
HTML
 
 
HTML uses a three-part hexadecimal format to specify colors (of text, of backgrounds, of cells in tables).

The first part specifies the strength of the red component of color, the second specifies the strength of the green component, and the last specifies the strength of the blue component.   Look at Figure 1.   It is a representation of the HTML color format.   In the Figure, the "#" represent numeric values.

As I stated above, HTML denotes the strength of each color by a two-digit hexadecimal (base 16) number.   In base ten, there are 10x10 possible combinations of two digits.   The weakest (smallest) two-digit number in base ten is "00", or zero.   The next stronger (larger) number is "01"; the next larger number after that is "02" or two, etc.   There are ten possible digits in base 10:   "0", "1", "2", "3", "4", "5", "6", "7", "8", " and "9".   When we exceed "9", we go to the second digit and start over in the first digit:   "10", "11", "12", etc.   When we exceed "19", we increment the second digit and start over in the first digit:   "20", "21", "22", etc.

The largest number that can be represented by two digits, in base ten, is "99", which means 9x10 (nine times the value of the second digit, which is ten in base 10) + 9 (nine times the value of the first digit).

In base 16, we do not stop at "9"; we go to "A", "B", "C", "D", "E", and "F".   So while the largest one-digit number in base ten is "9", the largest single-digit number in base sixteen is "F" (written as "15" in base ten).   In base sixteen, the numbers "A", "B", "C", "D", "E", and "F" correspond to "10", "11", "12", "13", "14", and "15" in base ten.

In base 16, the next larger number after "F" is "10".   It does not correspond to ten, but to sixteen.   We increment the second digit and start over on the first.   Then the next larger numbers are "11", "12", "13", "14", "15", "16", "17", "18", "19", "1A", "1B", "1C", "1D", "1E", and "1F".   These correspond to "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", and "31" in base ten.

 
 
 
 
#


#

 
#


#

 
#


#

  Figure 1.   HTML represents colors by specifying strength of red, green, and blue components.   Each strength is represented by two hexadecimal (base 16) characters.  
  When a color is turned off completely (minimum strength), it is represented by "00".   When a color is turned on completely (maximum strength), it is represented by "FF".  
 
   
So the color red is represented by red turned fully on ("FF" in hexadecimal), and green and blue turned fully off ("00").   Thus the six-digit hexadecimal representation of red is "FF0000".

      The color green is represented by red and blue turned fully off ("00" in hexadecimal), and green turned fully on ("FF").   Therefore the six-digit hexadecimal representation of green is "00FF00".

     
The color blue is represented by red and green turned fully off ("00" in hexadecimal), and blue turned fully on ("FF").   So the six-digit hexadecimal representation of blue is "0000FF".

 
 
   
The color yellow can be represented by both red and green being fully turned on, with blue turned off:   "FFFF00".

     
If the green is reduced, the result is orange:   "FFCC00"

     
If both red and blue are fully turned on, with green turned off, the result is violet:   "FF00FF"

   
 
   
Reducing the red, but leaving blue fully on and green off, produces another shade of violet:   "9900FF"

     
If red is turned off, but blue and green are turned fully on, the result is turquoise:   "00FFFF".

     
Start with turquoise, then reduce the blue:   "00FF66"

   
 
   
Take the previous color, and swap green and blue:   "0066FF"

     
Start with violet, then increase the green:   "FF99FF"

     
"990066" produces yet another shade of violet

   
 
  Putting the colors adjacent to each other:  
 
"FF0000"
"00FF00"
"0000FF"
"FFFF00"
"FFCC00"
"FF00FF"
 
 
"9900FF"
"00FFFF"
"00FF66"
"0066FF"
"FF99FF"
"990066"
 
You can experiment with different combinations.   Template 3 allows you to specify the six-digit hexadecimal representation of a color, and see what the color is.

The number of possible HTML colors is 16 6   =   (24) 6   =   2 24, which exceeds 16 million.   But if we use three pairs of two digits (the pairs corresponding to red, green, and blue), and allow just six values for each pair ("00", "33", "66", "99", "CC", and "FF"), the number of possible combinations is just 6 3   =   216.

Those colors are shown below.   The numbers in each box are the hexadecimal representations of the color of the box.   There are 36 colors starting with "00", 36 starting with "33", 36 starting with "66", 36 starting with "99", 36 starting with "CC", and 36 starting with "FF".   This gives a total of 6x36 = 216 colors.

The second color file contains the same colors, but the boxes are much smaller so that you can see more of the colors at once.   The third color file contains the colors in color order (red, then green, the blue, then pink, then teal, then gray/brown), rather than numeric order.   The fourth color file is the same as the third, but with smaller boxes.

 
 
TOP
330000 - 33FFFF
660000 - 66FFFF
990000 - 99FFFF
CC0000 - CCFFFF
FF0000 - F
 
 
 
COLORS "000000" THROUGH "00FFFF"
 
   

000000


 

000033


 

000066


 

000099


 

0000CC


 

0000FF


 
 
   

003300


 

000033


 

003366


 

003399


 

0033CC


 

0033FF


 
 
   

006600


 

006633


 

006666


 

006699


 

0066CC


 

0066FF


 
 
   

009900


 

009933


 

009966


 

009999


 

0099CC


 

0099FF


 
 
   

00CC00


 

00CC33


 

00CC66


 

00CC99


 

00CCCC


 

00CCFF


 
 
   

00FF00


 

00FF33


 

00FF66


 

00FF99


 

00FFCC


 

00FFFF


 
 
 
TOP
000000 - 00FFFF
660000 - 66FFFF
990000 - 99FFFF
CC0000 - CCFFFF
FF0000 - FFFFFF
   
 
 
COLORS "330000" THROUGH "33FFFF"
 
   

330000


 

330033


 

330066


 

330099


 

3300CC


 

3300FF


 
 
   

333300


 

333333


 

333366


 

333399


 

3333CC


 

3333FF


 
 
   

336600


 

336633


 

336666


 

336699


 

3366CC


 

3366FF


 
 
   

339900


 

339933


 

339966


 

339999


 

3399CC


 

3399FF


 
 
   

33CC00


 

33CC33


 

33CC66


 

33CC99


 

33CCCC


 

33CCFF


 
 
   

33FF00


 

33FF33


 

33FF66


 

33FF99


 

33FFCC


 

33FFFF


 
 
 
TOP
000000 - 00FFFF
330000 - 33FFFF
990000 - 99FFFF
CC0000 - CCFFFF
FF0000 - FFFFFF
   
 
 
COLORS "660000" THROUGH "66FFFF"
 
   

660000


 

660033


 

660066


 

660099


 

6600CC


 

6600FF


 
 
   

663300


 

663333


 

663366


 

663399


 

6633CC


 

6633FF


 
 
   

666600


 

666633


 

666666


 

666699


 

6666CC


 

6666FF


 
 
   

669900


 

669933


 

669966


 

669999


 

6699CC


 

6699FF


 
 
   

66CC00


 

66CC33


 

66CC66


 

66CC99


 

66CCCC


 

66CCFF


 
 
   

66FF00


 

66FF33


 

66FF66


 

66FF99


 

66FFCC


 

66FFFF


 
 
 
TOP
000000 - 00FFFF
330000 - 33FFFF
660000 - 66FFFF
CC0000 - CCFFFF
FF0000 - FFFFFF
   
 
 
COLORS "990000" THROUGH "99FFFF"
 
   

990000


 

990033


 

990066


 

990099


 

9900CC


 

9900FF


 
 
   

993300


 

993333


 

993366


 

993399


 

9933CC


 

9933FF


 
 
   

996600


 

996633


 

996666


 

996699


 

9966CC


 

9966FF


 
 
   

999900


 

999933


 

999966


 

999999


 

9999CC


 

9999FF


 
 
   

99CC00


 

99CC33


 

99CC66


 

99CC99


 

99CCCC


 

99CCFF


 
 
   

99FF00


 

99FF33


 

99FF66


 

99FF99


 

99FFCC


 

99FFFF


 
 
 
TOP
000000 - 00FFFF
330000 - 33FFFF
660000 - 66FFFF
990000 - 99FFFF
FF0000 - FFFFFF
   
 
 
COLORS "CC0000" THROUGH "CCFFFF"
 
   

CC0000


 

CC0033


 

CC0066


 

CC0099


 

CC00CC


 

CC00FF


 
 
   

CC3300


 

CC3333


 

CC3366


 

CC3399


 

CC33CC


 

CC33FF


 
 
   

CC6600


 

CC6633


 

CC6666


 

CC6699


 

CC66CC


 

CC66FF


 
 
   

CC9900


 

CC9933


 

CC9966


 

CC9999


 

CC99CC


 

CC99FF


 
 
   

CCCC00


 

CCCC33


 

CCCC66


 

CCCC99


 

CCCCCC


 

CCCCFF


 
 
   

CCFF00


 

CCFF33


 

CCFF66


 

CCFF99


 

CCFFCC


 

CCFFFF


 
 
 
TOP
000000 - 00FFFF
330000 - 33FFFF
660000 - 66FFFF
990000 - 99FFFF
CC0000 - CCFFFF
   
 
 
COLORS "FF0000" THROUGH "FFFFFF"
 
   

FF0000


 

FF0033


 

FF0066


 

FF0099


 

FF00CC


 

FF00FF


 
 
   

FF3300


 

FF3333


 

FF3366


 

FF3399


 

FF33CC


 

FF33FF


 
 
   

FF6600


 

FF6633


 

FF6666


 

FF6699


 

FF66CC


 

FF66FF


 
 
   

FF9900


 

FF9933


 

FF9966


 

FF9999


 

FF99CC


 

FF99FF


 
 
   

FFCC00


 

FFCC33


 

FFCC66


 

FFCC99


 

FFCCCC


 

FFCCFF


 
 
   

FFFF00


 

FFFF33


 

FFFF66


 

FFFF99


 

FFFFCC


 

FFFFFF


 
 
 
TOP
000000 - 00FFFF
330000 - 33FFFF
660000 - 66FFFF
990000 - 99FFFF
CC0000 - CCFFFF
   
 
Template 1
Template 2
Template 3
Template 4
Color 2
Color3
Color 4
Special Characters
HTML