Appendix B XHTML Colors


Home

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 #00FFFF. 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.

XHTML standard colors and hexadecimal RGB values

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