Appendix D. CSS Color Reference

As covered in detail in Chapter 7, there are five methods to specify color values in CSS:

  • Descriptive color names

    color: red;
    

  • System color names

    color: AppWorkspace;
    

  • RGB hexadecimal values (including a three-character shorthand)

    color: #ff0000;
    color: #f00;
    

  • RGB decimal values

    color: rgb(255, 0, 0);
    

  • RGB percentage values

    color: rgb(100%, 0%, 0%);
    

This appendix provides a complete reference to the first two methods—color names. The CSS2 Recommendation prescribes a set of 16 descriptive color names, which are presented in Table D-2. Netscape proposed an additional 124 color names, which are supported by practically every graphical browser available today, and are presented in Table D-3. Finally, CSS2 also provides a set of 28 system color names, which correspond to the colors used for different parts of the GUI presented by the user's operating system, and are presented in Table D-1. System color names are supported in most current browsers, but older browsers typically do not support them.

Table D-1. Standard CSS Color Names
Color NameHex EquivalentRedGreenBlue
aqua#00FFFF0255255
black#000000000
blue#0000FF00255
fuchsia#FF00FF2550255
gray#808080128128128
green#00800001280
lime#00FF0002550
maroon#80000012800
navy#00008000128
olive#8080001281280
purple#8000801280128
red#FF000025500
silver#C0C0C0192192192
teal#0080800128128
white#FFFFFF255255255
yellow#FFFF002552550

Table D-2. Netscape Extended Color Names
Color NameHex EquivalentRedGreenBlue
aliceblue#F0F8FF240248255
antiquewhite#FAEBD7250235215
aquamarine#7FFFD4127255212
azure#F0FFFF240255255
beige#F5F5DC245245220
bisque#FFE4C4255228196
blanchedalmond#FFEBCD255235205
blueviolet#8A2BE213843226
brown#A52A2A1654242
burlywood#DEB887222184135
cadetblue#5F9EA095158160
chartreuse#7FFF001272550
chocolate#D2691E21010530
coral#FF7F5025512780
cornflowerblue#6495ED100149237
cornsilk#FFF8DC255248220
crimson#DC143D2202061
cyan#00FFFF0255255
darkblue#00008B00139
darkcyan#008B8B0139139
darkgoldenrod#B8860B13913411
darkgray#A9A9A9169169169
darkgreen#00640001000
darkkhaki#BDB76B189183107
darkmagenta#8B008B1390139
darkolivegreen#556B2F8510747
darkorange#FF8C002551400
darkorchid#9932CC15350204
darkred#8B000013900
darksalmon#E9967A233150122
darkseagreen#8FBC8F143188143
darkslateblue#483D8B7261139
darkslategray#2F4F4F477979
darkturquoise#00CED10206209
darkviolet#9400D31480211
deeppink#FF149325520147
deepskyblue#00BFFF0191255
dimgray#696969105105105
dodgerblue#1E90FF30144255
firebrick#B222221783434
floralwhite#FFFAF0255250240
forestgreen#228B223413934
gainsboro#DCDCDC220220220
ghostwhite#F8F8FF248248255
gold#FFD7002552150
goldenrod#DAA52021816532
greenyellow#ADFF2F17325547
honeydew#F0FFF0240255240
hotpink#FF69B4255105180
indianred#CD5C5C2059292
indigo#4B0082750130
ivory#FFFFF0255255240
khaki#F0E68C240230140
lavender#E6E6FA230230250
lavenderblush#FFF0F5255240245
lawngreen#7CFC001242520
lemonchiffon#FFFACD255250205
lightblue#ADD8E6173216230
lightcoral#F08080240128128
lightcyan#E0FFFF224255255
lightgoldenrodyellow#FAFAD2250250210
lightgreen#90EE90144238144
lightgrey#D3D3D3211211211
lightpink#FFB6C1255182193
lightsalmon#FFA07A255160122
lightseagreen#20B2AA32178170
lightskyblue#87CEFA135206250
lightslategray#778899119136153
lightsteelblue#B0C4DE176196222
lightyellow#FFFFE0255255224
limegreen#32CD325020550
linen#FAF0E6250240230
magenta#FF00FF2550255
mediumaquamarine#66CDAA102205170
mediumblue#0000CD00205
mediumorchid#BA55D318685211
mediumpurple#9370DB147112219
mediumseagreen#3CB37160179113
mediumslateblue#7B68EE123104238
mediumspringgreen#00FA9A0250154
mediumturquoise#48D1CC72209204
mediumvioletred#C7158519921133
midnightblue#1919702525112
mintcream#F5FFFA245255250
mistyrose#FFE4E1255228225
moccasin#FFE4B5255228181
navajowhite#FFDEAD255222173
oldlace#FDF5E6253245230
olivedrab#6B8E2310714235
orange#FFA5002551650
orangered#FF4500255690
orchid#DA70D6218112214
palegoldenrod#EEE8AA238232170
palegreen#98FB98152251152
paleturquoise#AFEEEE175238238
palevioletred#DB7093219112147
papayawhip#FFEFD5255239213
peachpuff#FFDAB9255218185
peru#CD853F20513363
pink#FFC0CB255192203
plum#DDA0DD221160221
powderblue#B0E0E6176224230
rosybrown#BC8F8F188143143
royalblue#4169E165105225
saddlebrown#8B45131396919
salmon#FA8072250128114
sandybrown#F4A46024416496
seagreen#2E8B574613987
seashell#FFF5EE255245238
sienna#A0522D1608245
skyblue#87CEEB135206235
slateblue#6A5ACD10690205
slategray#708090112128144
snow#FFFAFA255250250
spinggreen#00FF7F0255127
steelblue#4682B470130180
tan#D2B48C210180140
thistle#D8BFD8216191216
tomato#FF63472559971
turquoise#40E0D064224208
violet#EE82EE238130238
wheat#F5DEB3245222179
whitesmoke#F5F5F5245245245
yellowgreen#9ACD3215420550

Table D-3. Standard CSS System Color Names
Color NameDescription
ActiveBorderactive window border color
ActiveCaptionactive window caption color
AppWorkspacebackground color of a multiple document interface
Backgrounddesktop background color
ButtonFaceface color for three-dimensional display elements
ButtonHighlighthighlight color for three-dimensional display elements (edges facing light source)
ButtonShadowshadow color for three-dimensional display elements (edges opposite light source)
ButtonTexttext color on push buttons
CaptionTexttext color in caption, size box, and scrollbar arrow box
GrayTextgrayed-out (disabled) text color
Highlightbackground color for selected items in a control
HighlightTexttext color for selected items in a control
InactiveBorderinactive window border color
InactiveCaptioninactive window caption color
InactiveCaptionTextinactive caption text color
InfoBackgroundtooltip background color
InfoTexttooltip text color
Menumenu background color
MenuTextmenu text color
Scrollbarscrollbar background color
ThreeDDarkShadowdark shadow color for three-dimensional display elements
ThreeDFaceface color for three-dimensional display elements
ThreeDHighlighthighlight color for three-dimensional display elements
ThreeDLightShadowlight color for three-dimensional display elements
ThreeDShadowshadow color for three-dimensional display elements
Windowwindow background color
WindowFramewindow frame color
WindowTexttext color in windows

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.156.250