Appendix B

XHTML Colors

Colors may be specified by using a standard name (such as aqua) or a hexadecimal RGB value (such as #00FFFF for aqua). Of the six hexadecimal digits in an RGB value, the first two represent the amount of red in the color, the middle two represent the amount of green in the color, and the last two represent the amount of blue in the color. For example, black is the absence of color and is defined by #000000, whereas white is the maximum amount of red, green and blue and is defined by #FFFFFF. Pure red is #FF0000, pure green (which the standard calls lime) is #00FF00 and pure blue is #0000FF. Note that green in the standard is defined as #008000. Figure B.1 contains the XHTML standard color set. Figure B.2 contains the XHTML extended color set.

Color Name Value Example Color Name Value Example
Fig. B.1 | XHTML standard colors and hexadecimal RGB values.
aqua #00FFFF navy #000080
black #000000 olive #808000
blue #0000FF purple #800080
fuchsia #FF00FF red #FF0000
gray #808080 silver #C0C0C0
green #008000 teal #008080
lime #00FF00 yellow #FFFF00
maroon #800000 white #FFFFFF

Color Name Value Example Color Name Value Example
Fig. B.2 | XHTML extended colors and hexadecimal RGB values.
aliceblue #F0F8FF dodgerblue #1E90FF
antiquewhite #FAEBD7 firebrick #B22222
aquamarine #7FFFD4 floralwhite #FFFAF0
azure #F0FFFF forestgreen #228B22
beige #F5F5DC gainsboro #DCDCDC
bisque #FFE4C4 ghostwhite #F8F8FF
blanchedalmond #FFEBCD gold #FFD700
blueviolet #8A2BE2 goldenrod #DAA520
brown #A52A2A greenyellow #ADFF2F
burlywood #DEB887 honeydew #F0FFF0
cadetblue #5F9EA0 hotpink #FF69B4
charteuse #7FFF00 indianred #CD5C5C
chocolate #D2691E indigo #4B0082
coral #FF7F50 ivory #FFFFF0
cornflowerblue #6495ED khaki #F0E68C
cornsilk #FFF8DC lavender #E6E6FA
crimson #DC143C lavenderblush #FFF0F5
cyan #00FFFF lawngreen #7CFC00
darkblue #00008B lemonchiffon #FFFACD
darkcyan #008B8B lightblue #ADD8E6
darkgoldenrod #B8860B lightcoral #F08080
darkgray #A9A9A9 lightcyan #E0FFFF
darkgreen #006400 lightgoldenrodyellow #FAFAD2
darkkhaki #BDB76B lightgreen #90EE90
darkmagenta #8B008B lightgrey #D3D3D3
darkolivegreen #556B2F lightpink #FFB6C1
darkorange #FF8C00 lightsalmon #FFA07A
darkorchid #9932CC lightseagreen #20B2AA
darkred #8B0000 lightskyblue #87CEFA
darksalmon #E9967A lightslategray #778899
darkseagreen #8FBC8F lightsteelblue #B0C4DE
darkslateblue #483D8B lightyellow #FFFFE0
darkslategray #2F4F4F limegreen #32CD32
darkturquoise #00CED1 linen #FAF0E6
darkviolet #9400D3 magenta #FF00FF
deeppink #FF1493 mediumaquamarine #66CDAA
deepskyblue #00BFFF mediumblue #0000CD
dimgray #696969 mediumorchid #BA55D3
mediumpurple #9370DB plum #DDA0DD
mediumseagreen #3CB371 powderblue #B0E0E6
mediumslateblue #7B68EE rosybrown #BC8F8F
mediumspringgreen #00FA9A royalblue #4169E1
mediumturquoise #48D1CC saddlebrown #8B4513
mediumvioletred #C71585 salmon #FA8072
midnightblue #191970 sandybrown #F4A460
mintcream #F5FFFA seagreen #2E8B57
mistyrose #FFE4E1 seashell #FFF5EE
moccasin #FFE4B5 sienna #A0522D
navajowhite #FFDEAD skyblue #87CEEB
oldlace #FDF5E6 slateblue #6A5ACD
olivedrab #6B8E23 slategray #708090
orange #FFA500 snow #FFFAFA
orangered #FF4500 springgreen #00FF7F
orchid #DA70D6 steelblue #4682B4
palegoldenrod #EEE8AA tan #D2B48C
palegreen #98FB98 thistle #D8BFD8
paleturquoise #AFEEEE tomato #FF6347
palevioletred #DB7093 turquoise #40E0D0
papayawhip #FFEFD5 violet #EE82EE
peachpuff #FFDAB9 wheat #F5DEB3
peru #CD853F whitesmoke #F5F5F5
pink #FFC0CB yellowgreen #9ACD32

Valid XHTML 1.0 Strict

Valid CSS!