CSS Color Module Level 3
CSS Color Module Level 3
Abstract
CSS (Cascading Style Sheets) is a language for describing the rendering of
HTML and XML documents on screen, on paper, in speech, etc. It uses colorrelated properties and values to color the text, backgrounds, borders, and
other parts of elements in a document. This specification describes color
values and properties for foreground color and group opacity. These include
properties and values from CSS level 2 and new values.
Table of Contents
1.Introduction
2.Dependencies
3.Color properties
o
o
4.Color units
o
o
o
o
o
12.1.Normative
12.2.Informative
Index
Property index
1. Introduction
CSS beyond level 2 is a set of modules, divided up to allow the specifications
to develop incrementally, along with their implementations. This specification
is one of those modules.
This module describes CSS properties which allow authors to specify the
foreground color and opacity of an element. This module also describes in
detail the CSS <color> value type.
It not only defines the color-related properties and values that already
exist in CSS1 and CSS2, but also defines new properties and values.
The Working Group doesn't expect that all implementations of CSS3 will
implement all properties or values. Instead, there will probably be a small
number of variants of CSS3, so-called "profiles". For example, it may be that
only the profile for 32-bit color user agents will include all of the proposed
color-related properties and values.
The specification is the result of the merging of relevant parts of the
following Recommendations and Working Drafts, and the addition of some
new features.
2. Dependencies
Additional terminology is defined in the Definitions section of [CSS21].
Examples of document source code and fragments are given in
XML [XML10] or HTML [HTML401] syntax.
3. Color properties
3.1. Foreground color: the color property
Name:
color
Value:
<color> | inherit
Initial:
Applies to:
all elements
Inherited:
yes
Percentages:
N/A
Media:
visual
Computed
value:
The computed value for basic color keywords, RGB hex values and
values, e.g. six digit hex value or rgb(...) functional value, with an alph
See the definition of the currentColor for how its computed value is
For all other values, the computed value is the specified value.
/* color keyword */
em { color: rgb(0,255,0) }
<color>
Color units are defined in a following section.
*/
opacity
Value:
<alphavalue> | inherit
Initial:
Applies to:
all elements
Inherited:
no
Percentages:
N/A
Media:
visual
Computed
value:
The same as the specified value after clipping the <alphavalue> to the ran
<alphavalue>
Syntactically a <number>. The uniform opacity setting to be applied
across an entire object. Any values outside the range 0.0 (fully
transparent) to 1.0 (fully opaque) will be clamped to this range. If the
object is a container element, then the effect is as if the contents of the
container element were blended against the current background using a
mask where the value of each pixel of the mask is <alphavalue>.
Since an element with opacity less than 1 is composited from a single
offscreen image, content outside of it cannot be layered in z-order between
pieces of content inside of it. For the same reason, implementations must
create a new stacking context for any element with opacity less than 1. If an
element with opacity less than 1 is not positioned, implementations must paint
the layer it creates, within its parent stacking context, at the same stacking
order that would be used if it were a positioned element with z-index: 0 and
opacity: 1. If an element with opacity less than 1 is positioned, the z-index
property applies as described in [CSS21], except that auto is treated as 0
since a new stacking context is always created. See section 9.9 and Appendix
E of [CSS21] for more information on stacking contexts. The rules in this
paragraph do not apply to SVG elements, since SVG has its own rendering
model ([SVG11], Chapter 3).
4. Color units
A <color> is either a keyword or a numerical specification.
Named
Numeric
Color name
black
silver
gray
white
maroon
red
purple
fuchsia
green
lime
olive
yellow
navy
blue
Hex rgb
#000000
#C0C0C0
#808080
#FFFFFF
#800000
#FF0000
#800080
#FF00FF
#008000
#00FF00
#808000
#FFFF00
#000080
#0000FF
Decimal
0,0,0
192,192,192
128,128,128
255,255,255
128,0,0
255,0,0
128,0,128
255,0,255
0,128,0
0,255,0
128,128,0
255,255,0
0,0,128
0,0,255
teal
aqua
#008080
#00FFFF
0,128,128
0,255,255
/* #rgb */
em { color: #ff0000 }
/* #rrggbb */
em { color: rgb(255,0,0) }
em { color: rgb(100%, 0%, 0%) }
monitor, whose device gamut is the same as sRGB, the four rules below are
equivalent:
em { color: rgb(255,0,0) }
em { color: rgb(300,0,0) }
/* clipped to rgb(255,0,0) */
em { color: rgb(255,-10,0) }
/* clipped to rgb(255,0,0) */
/* clipped to rgb(100%,0%,0%) */
Other devices, such as printers, have different gamuts than sRGB; some
colors outside the 0..255 sRGB range will be representable (inside the device
gamut), while other colors inside the 0..255 sRGB range will be outside the
device gamut and will thus be mapped.
4.2.2. RGBA color values
The RGB color model is extended in this specification to include alpha to
allow specification of the opacity of a color. See simple alpha compositing for
details. These examples all specify the same color:
em { color: rgb(255,0,0) }
em { color: rgba(255,0,0,1)
em { color: rgb(100%,0%,0%) }
Note. If RGBA values are not supported by a user agent, they should be
treated like unrecognized values per the CSS forward compatibility parsing
rules ([CSS21], Chapter 4). RGBA values must not be treated as simply an
RGB value with the opacity ignored.
There are several other color schemes possible. Some advantages of HSL
are that it is symmetrical to lightness and darkness (which is not the case with
HSV for example), and it is trivial to convert HSL to RGB.
HSL colors are encoding as a triple (hue, saturation, lightness). Hue is
represented as an angle of the color circle (i.e. the rainbow represented in a
circle). This angle is so typically measured in degrees that the unit is implicit in
CSS; syntactically, only a <number> is given. By definition red=0=360, and
the other colors are spread around the circle, so green=120, blue=240, etc. As
an angle, it implicitly wraps around such that -120=240 and 480=120. One
way an implementation could normalize such an angle x to the range [0,360)
(i.e. zero degrees, inclusive, to 360 degrees, exclusive) is to compute (((x mod
360) + 360) mod 360). Saturation and lightness are represented as
percentages. 100% is full saturation, and 0% is a shade of gray. 0% lightness
is black, 100% lightness is white, and 50% lightness is normal.
So for instance:
* { color: hsl(0, 100%, 50%) }
/* red */
The advantage of HSL over RGB is that it is far more intuitive: you can guess
at the colors you want, and then tweak. It is also easier to create sets of
matching colors (by keeping the hue the same and varying the
lightness/darkness, and saturation)
If saturation is less than 0%, implementations must clip it to 0%. If the
resulting value is outside the device gamut, implementations must clip it to the
device gamut. This clipping should preserve the hue when possible, but is
otherwise undefined. (In other words, the clipping is different from applying the
rules for clipping of RGB colors after applying the algorithm below for
converting HSL to RGB.)
The algorithm to translate HSL to RGB is simple (here expressed in
ABC [ABC] which was used to generate the tables.) In these algorithms, all
three values (H, S and L) have been normalized to fractions 0..1:
HOW TO RETURN hsl.to.rgb(h, s, l):
SELECT:
l<=0.5: PUT l*(s+1) IN m2
ELSE: PUT l+s-l*s IN m2
PUT l*2-m2 IN m1
PUT hue.to.rgb(m1, m2, h+1/3) IN r
PUT hue.to.rgb(m1, m2, h
) IN g
Each table below represents one hue. Twelve equally spaced colors (i.e. at
30 intervals) have been chosen from the color circle: red, yellow, green, cyan,
blue, magenta, with all the intermediate colors (the last is the color between
magenta and red).
The X axis of each table represents the saturation (100%, 75%, 50%,
25%, 0%).
The Y axis represents the lightness. 50% is normal.
0 Reds
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
7
5
%
5
0
%
2
5
%
0
%
5
1
3
0
30 Red-Yellows
(=Oranges)
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
7
5
%
5
0
%
2
5
%
0
%
5
1
3
0
60 Yellows
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
7
5
%
5
0
%
2
5
%
0
%
1
3
0
90 Yellow-Greens
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
7
5
%
5
0
%
2
5
%
0
%
3
0
120 Greens
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
7
5
%
5
0
%
2
5
%
0
%
0
150 Green-Cyans
Saturation
10
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
7
5
%
5
0
%
2
5
%
0
%
180 Cyans
Saturation
10
0
%
7
5
%
5
0
%
2
5
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
210 Cyan-Blues
0
%
Saturation
10
0
%
7
5
%
5
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
240 Blues
Saturation
2
5
%
0
%
10
0
%
7
5
%
5
0
%
2
5
%
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
270 Blue-Magentas
Saturation
10
0
%
5
%
0
%
5
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
300 Magentas
Saturation
10
0
7
5
5
0
2
5
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
330 Magenta-Reds
Saturation
10
0
%
7
5
%
5
0
%
2
5
%
0
%
1
0
0
8
8
7
5
6
3
5
0
3
8
2
5
1
3
0
/* green */
The format of an HSLA color value in the functional notation is hsla( followed
by the hue in degrees, saturation and lightness as a percentage, and
an <alphavalue>, followed by ). White space characters are allowed around
the numerical values.
Implementations must clip the hue, saturation, and lightness components
of HSLA color values to the device gamut according to the rules for the HSL
color value composed of those components.
These examples specify effects that are possible with the hsla() notation:
p { color: hsla(240, 100%, 50%, 0.5) } /* semi-transparent solid blue */
p { color: hsla(30, 100%, 50%, 0.1) }
cornflowerblue
cornsilk
crimson
cyan
darkblue
darkcyan
darkgoldenrod
darkgray
darkgreen
darkgrey
darkkhaki
darkmagenta
darkolivegreen
darkorange
darkorchid
darkred
darksalmon
darkseagreen
darkslateblue
darkslategray
darkslategrey
darkturquoise
darkviolet
deeppink
deepskyblue
dimgray
dimgrey
dodgerblue
firebrick
floralwhite
forestgreen
fuchsia
gainsboro
ghostwhite
gold
goldenrod
#6495ED
#FFF8DC
#DC143C
#00FFFF
#00008B
#008B8B
#B8860B
#A9A9A9
#006400
#A9A9A9
#BDB76B
#8B008B
#556B2F
#FF8C00
#9932CC
#8B0000
#E9967A
#8FBC8F
#483D8B
#2F4F4F
#2F4F4F
#00CED1
#9400D3
#FF1493
#00BFFF
#696969
#696969
#1E90FF
#B22222
#FFFAF0
#228B22
#FF00FF
#DCDCDC
#F8F8FF
#FFD700
#DAA520
100,149,237
255,248,220
220,20,60
0,255,255
0,0,139
0,139,139
184,134,11
169,169,169
0,100,0
169,169,169
189,183,107
139,0,139
85,107,47
255,140,0
153,50,204
139,0,0
233,150,122
143,188,143
72,61,139
47,79,79
47,79,79
0,206,209
148,0,211
255,20,147
0,191,255
105,105,105
105,105,105
30,144,255
178,34,34
255,250,240
34,139,34
255,0,255
220,220,220
248,248,255
255,215,0
218,165,32
gray
green
greenyellow
grey
honeydew
hotpink
indianred
indigo
ivory
khaki
lavender
lavenderblush
lawngreen
lemonchiffon
lightblue
lightcoral
lightcyan
lightgoldenrodyellow
lightgray
lightgreen
lightgrey
lightpink
lightsalmon
lightseagreen
lightskyblue
lightslategray
lightslategrey
lightsteelblue
lightyellow
lime
limegreen
linen
magenta
maroon
mediumaquamarine
mediumblue
#808080
#008000
#ADFF2F
#808080
#F0FFF0
#FF69B4
#CD5C5C
#4B0082
#FFFFF0
#F0E68C
#E6E6FA
#FFF0F5
#7CFC00
#FFFACD
#ADD8E6
#F08080
#E0FFFF
#FAFAD2
#D3D3D3
#90EE90
#D3D3D3
#FFB6C1
#FFA07A
#20B2AA
#87CEFA
#778899
#778899
#B0C4DE
#FFFFE0
#00FF00
#32CD32
#FAF0E6
#FF00FF
#800000
#66CDAA
#0000CD
128,128,128
0,128,0
173,255,47
128,128,128
240,255,240
255,105,180
205,92,92
75,0,130
255,255,240
240,230,140
230,230,250
255,240,245
124,252,0
255,250,205
173,216,230
240,128,128
224,255,255
250,250,210
211,211,211
144,238,144
211,211,211
255,182,193
255,160,122
32,178,170
135,206,250
119,136,153
119,136,153
176,196,222
255,255,224
0,255,0
50,205,50
250,240,230
255,0,255
128,0,0
102,205,170
0,0,205
mediumorchid
mediumpurple
mediumseagreen
mediumslateblue
mediumspringgreen
mediumturquoise
mediumvioletred
midnightblue
mintcream
mistyrose
moccasin
navajowhite
navy
oldlace
olive
olivedrab
orange
orangered
orchid
palegoldenrod
palegreen
paleturquoise
palevioletred
papayawhip
peachpuff
peru
pink
plum
powderblue
purple
red
rosybrown
royalblue
saddlebrown
salmon
sandybrown
#BA55D3
#9370DB
#3CB371
#7B68EE
#00FA9A
#48D1CC
#C71585
#191970
#F5FFFA
#FFE4E1
#FFE4B5
#FFDEAD
#000080
#FDF5E6
#808000
#6B8E23
#FFA500
#FF4500
#DA70D6
#EEE8AA
#98FB98
#AFEEEE
#DB7093
#FFEFD5
#FFDAB9
#CD853F
#FFC0CB
#DDA0DD
#B0E0E6
#800080
#FF0000
#BC8F8F
#4169E1
#8B4513
#FA8072
#F4A460
186,85,211
147,112,219
60,179,113
123,104,238
0,250,154
72,209,204
199,21,133
25,25,112
245,255,250
255,228,225
255,228,181
255,222,173
0,0,128
253,245,230
128,128,0
107,142,35
255,165,0
255,69,0
218,112,214
238,232,170
152,251,152
175,238,238
219,112,147
255,239,213
255,218,185
205,133,63
255,192,203
221,160,221
176,224,230
128,0,128
255,0,0
188,143,143
65,105,225
139,69,19
250,128,114
244,164,96
seagreen
seashell
sienna
silver
skyblue
slateblue
slategray
slategrey
snow
springgreen
steelblue
tan
teal
thistle
tomato
turquoise
violet
wheat
white
whitesmoke
yellow
yellowgreen
#2E8B57
#FFF5EE
#A0522D
#C0C0C0
#87CEEB
#6A5ACD
#708090
#708090
#FFFAFA
#00FF7F
#4682B4
#D2B48C
#008080
#D8BFD8
#FF6347
#40E0D0
#EE82EE
#F5DEB3
#FFFFFF
#F5F5F5
#FFFF00
#9ACD32
46,139,87
255,245,238
160,82,45
192,192,192
135,206,235
106,90,205
112,128,144
112,128,144
255,250,250
0,255,127
70,130,180
210,180,140
0,128,128
216,191,216
255,99,71
64,224,208
238,130,238
245,222,179
255,255,255
245,245,245
255,255,0
154,205,50
The color of the darker (generally outer) of the two borders away from
the light source for 3-D elements that appear 3-D due to two concentric
layers of surrounding border.
Three
DFac
e
The face background color for 3-D elements that appear 3-D due to two
concentric layers of surrounding border.
ThreeDHi
ghlight
The color of the lighter (generally outer) of the two borders facing the
light source for 3-D elements that appear 3-D due to two concentric
layers of surrounding border.
ThreeDLigh
Shadow
The color of the darker (generally inner) of the two borders facing the
light source for 3-D elements that appear 3-D due to two concentric
layers of surrounding border.
ThreeDShad
The color of the lighter (generally inner) of the two borders away from
the light source for 3-D elements that appear 3-D due to two concentric
layers of surrounding border.
Window
Window background.
WindowFram
Window frame.
WindowTex
Text in windows.
For example, to set the foreground and background colors of a paragraph
to the same foreground and background colors of the user's window, write the
following:
p { color: WindowText; background-color: Window }
Note. The CSS2 System Color values have been deprecated in favor of the
CSS3 UI appearance property. If you want to emulate the look of a user
interface related element or control, please use the appearance property
instead of attempting to mimic a user interface element through a combination
of system colors.
1.4.1 Use of Color: Color is not used as the only visual means of
conveying information, indicating an action, prompting a response, or
distinguishing a visual element
{ color: blue; }
7. Profiles
Each specification using CSS3 Color must define the subset of CSS3 Color
features it allows and excludes, and describe the local meaning of all the
components of that subset.
Non normative examples:
CSS3 Color profile
Specification
HTML4
Accepts
Excludes
color property
opacity property
RGB three digit hex color values and
RGB functional notation color value
RGBA color values
HSL and HSLA color values
Extended color keywords
currentColor color value
CSS2 UI Colors
transparent color value
Extra constraints
none.
CSS3 Color profile
Specification
CSS level 1
Accepts
color property
Basic color keywords
RGB color values
Excludes
opacity property
RGBA color values
HSL and HSLA color values
Extended color keywords
currentColor color value
CSS2 UI Colors
transparent color value
Extra constraints
none.
CSS3 Color profile
Specification
Accepts
CSS level 2
color property
Excludes
Extra constraints
opacity property
RGBA color values
HSL and HSLA color values
Extended color keywords
currentColor color value
transparent color value not valid for color
property.
orange color value (part of Extended
color keywords) is accepted in CSS level
2 revision 1
CSS3 Color profile
Specification
Accepts
color property
opacity property
Basic color keywords
RGB color values
CSS2 UI Colors
Extended color keywords
currentColor color value
Excludes
Extra constraints
8. Test suite
A CSS Color Module Test Suite has been developed, although further tests
may be added. This test suite is intended to allow user agents to verify their
basic conformance to the specification. This test suite does not pretend to be
exhaustive and does not cover all possible numerical color values. These
tests are available athttp://www.w3.org/Style/CSS/Test/CSS3/Color/current/.
10. Acknowledgments
Thanks to Brad Pettit both for writing up color-profiles, and for implementing it.
Thanks to Steven Pemberton for his write up on HSL colors. Thanks
especially to the feedback from Marc Attinasi, Bert Bos, Joe Clark, fantasai,
Patrick Garies, Tony Graham, Ian Hickson, Susan Lesch, Alex LeDonne,
Cameron McCormack, Krzysztof Maczyski, Chris Moschini, Chris Murphy,
Christoph Pper, David Perrell, Jacob Refstrup, Dave Singer, Jonathan
Stanley, Andrew Thompson, Russ Weakley, Etan Wexler, David Woolley, Boris
Zbarsky, Steve Zilles, the XSL FO subgroup of the XSL working group, and all
the rest of the www-style community. And thanks to Chris Lilley for being the
resident CSS Color expert.
11. Changes
This document differs from the previous, 28 October 2010, Proposed
Recommendation document as follows: the date, status and styling are
updated for W3C Recommendation, the references are updated, and this
changes appendix lists no substantive changes.
12. References
12.1. Normative
[COLORIMETRY]
Colorimetry, Third Edition. CIE 15:2004. ISBN 978-3-901906-33-6
[CSS21]
Bert Bos; et al. Cascading Style Sheets Level 2 Revision 1 (CSS 2.1)
Specification. 7 June 2011. W3C Recommendation.
URL: http://www.w3.org/TR/2011/REC-CSS2-20110607
[SRGB]
Multimedia systems and equipment - Colour measurement and
management - Part 2-1: Colour management - Default RGB colour
space - sRGB. IEC 61966-2-1 (1999-10) ISBN: 2-8318-4989-6 - ICS
codes: 33.160.60, 37.080 - TC 100 - 51 pp. as amended by Amendment
A1:2003. URL: http://www.colour.org/tc8-05/Docs/colorspace/61966-21.pdf
[SVG11]
Jon Ferraiolo et al. Scalable Vector Graphics (SVG) 1.1. 14 January
2003. W3C Recommendation. URL: http://www.w3.org/TR/2003/RECSVG11-20030114/
12.2. Informative
[ABC]
Leo Geurts; Lambert Meertens; Steven Pemberton. The ABC
Programmer's Handbook. Prentice-Hall. ISBN: 0-13-000027-2.
URL: http://www.cwi.nl/~steven/abc
[CSS2]
Ian Jacobs; et al. Cascading Style Sheets, level 2 (CSS2)
Specification. 11 April 2008. W3C Recommendation.
URL: http://www.w3.org/TR/2008/REC-CSS2-20080411
[CSS3UI]
Tantek elik. CSS3 Basic User Interface Module. 11 May 2004. W3C
Candidate Recommendation. (Work in progress.)
URL: http://www.w3.org/TR/2004/CR-css3-ui-20040511
[HTML401]
David Raggett; Ian Jacobs; Arnaud Le Hors. HTML 4.01
Specification. 24 December 1999. W3C Recommendation.
URL: http://www.w3.org/TR/1999/REC-html401-19991224
[OEB101]
Open eBook(tm) Publication Structure 1.0.1. Open eBook Forum(tm).
02 July 2001.
URL: http://www.openebook.org/oebps/oebps1.0.1/download/oeb101xhtml.htm
[SVG10]
Jon Ferraiolo. Scalable Vector Graphics (SVG) 1.0 Specification. 4
September 2001. W3C Recommendation.
URL: http://www.w3.org/TR/2001/REC-SVG-20010904
[WCAG20]
Michael Cooper; et al. Web Content Accessibility Guidelines (WCAG)
2.0. 11 December 2008. W3C Recommendation.
URL: http://www.w3.org/TR/2008/REC-WCAG20-20081211
[X11COLORS]
X11 Color Names URL: http://en.wikipedia.org/wiki/X11_color_names
[XML10]
C. M. Sperberg-McQueen; et al. Extensible Markup Language (XML)
1.0 (Fifth Edition). 26 November 2008. W3C Recommendation.
URL: http://www.w3.org/TR/2008/REC-xml-20081126/
Index
ActiveBorder, 4.5.1.
ActiveCaption, 4.5.1.
aliceblue, 4.3.
antiquewhite, 4.3.
appearance, 4.5.1.
AppWorkspace, 4.5.1.
aquamarine, 4.3.
azure, 4.3.
Background, 4.5.1.
beige, 4.3.
bisque, 4.3.
blanchedalmond, 4.3.
blueviolet, 4.3.
brown, 4.3.
burlywood, 4.3.
ButtonFace, 4.5.1.
ButtonHighlight, 4.5.1.
ButtonShadow, 4.5.1.
ButtonText, 4.5.1.
cadetblue, 4.3.
CaptionText, 4.5.1.
chartreuse, 4.3.
chocolate, 4.3.
color, 3.1.
<color>, 3.1., 4.
color-interpolation, 5.
color-rendering, 5.
compositing, 5.
coral, 4.3.
cornflowerblue, 4.3.
cornsilk, 4.3.
crimson, 4.3.
cyan, 4.3.
darkblue, 4.3.
darkcyan, 4.3.
darkgoldenrod, 4.3.
darkgray, 4.3.
darkgreen, 4.3.
darkgrey, 4.3.
darkkhaki, 4.3.
darkmagenta, 4.3.
darkolivegreen, 4.3.
darkorange, 4.3.
darkorchid, 4.3.
darkred, 4.3.
darksalmon, 4.3.
darkseagreen, 4.3.
darkslateblue, 4.3.
darkslategray, 4.3.
darkslategrey, 4.3.
darkturquoise, 4.3.
darkviolet, 4.3.
deeppink, 4.3.
deepskyblue, 4.3.
dimgray, 4.3.
dimgrey, 4.3.
dodgerblue, 4.3.
firebrick, 4.3.
floralwhite, 4.3.
forestgreen, 4.3.
gainsboro, 4.3.
ghostwhite, 4.3.
gold, 4.3.
goldenrod, 4.3.
GrayText, 4.5.1.
greenyellow, 4.3.
grey, 4.3.
Highlight, 4.5.1.
HighlightText, 4.5.1.
honeydew, 4.3.
hotpink, 4.3.
hsl(), 4.2.4.
hsla(), 4.2.5.
InactiveBorder, 4.5.1.
InactiveCaption, 4.5.1.
InactiveCaptionText, 4.5.1.
indianred, 4.3.
indigo, 4.3.
InfoBackground, 4.5.1.
InfoText, 4.5.1.
ivory, 4.3.
khaki, 4.3.
lavender, 4.3.
lavenderblush, 4.3.
lawngreen, 4.3.
lemonchiffon, 4.3.
lightblue, 4.3.
lightcoral, 4.3.
lightcyan, 4.3.
lightgoldenrodyellow, 4.3.
lightgray, 4.3.
lightgreen, 4.3.
lightgrey, 4.3.
lightpink, 4.3.
lightsalmon, 4.3.
lightseagreen, 4.3.
lightskyblue, 4.3.
lightslategray, 4.3.
lightslategrey, 4.3.
lightsteelblue, 4.3.
lightyellow, 4.3.
limegreen, 4.3.
linen, 4.3.
magenta, 4.3.
mediumaquamarine, 4.3.
mediumblue, 4.3.
mediumorchid, 4.3.
mediumpurple, 4.3.
mediumseagreen, 4.3.
mediumslateblue, 4.3.
mediumspringgreen, 4.3.
mediumturquoise, 4.3.
mediumvioletred, 4.3.
Menu, 4.5.1.
MenuText, 4.5.1.
midnightblue, 4.3.
mintcream, 4.3.
mistyrose, 4.3.
moccasin, 4.3.
navajowhite, 4.3.
oldlace, 4.3.
olivedrab, 4.3.
opacity, 3.2.
orange, 4.3.
orangered, 4.3.
orchid, 4.3.
palegoldenrod, 4.3.
palegreen, 4.3.
paleturquoise, 4.3.
palevioletred, 4.3.
papayawhip, 4.3.
peachpuff, 4.3.
peru, 4.3.
pink, 4.3.
plum, 4.3.
powderblue, 4.3.
#rgb, 4.2.1.
rgb(), 4.2.1.
rgba(), 4.2.2.
rosybrown, 4.3.
royalblue, 4.3.
#rrggbb, 4.2.1.
saddlebrown, 4.3.
salmon, 4.3.
sandybrown, 4.3.
Scrollbar, 4.5.1.
seagreen, 4.3.
seashell, 4.3.
sienna, 4.3.
skyblue, 4.3.
slateblue, 4.3.
slategray, 4.3.
slategrey, 4.3.
snow, 4.3.
springgreen, 4.3.
steelblue, 4.3.
tan, 4.3.
thistle, 4.3.
ThreeDDarkShadow, 4.5.1.
ThreeDFace, 4.5.1.
ThreeDHighlight, 4.5.1.
ThreeDLightShadow, 4.5.1.
ThreeDShadow, 4.5.1.
tomato, 4.3.
turquoise, 4.3.
violet, 4.3.
wheat, 4.3.
whitesmoke, 4.3.
Window, 4.5.1.
WindowFrame, 4.5.1.
WindowText, 4.5.1.
yellowgreen, 4.3.
Property index
Propert
y
Values
Initial
Applies to
Inh
.
Percentage
s
Medi
a
color
<color> | inherit
depends on
user agent
all
elements
yes
N/A
visual
opacity
<alphavalue> |
inherit
all
elements
no
N/A
visual