Jump to content

HTML color names

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Webaware (talk | contribs) at 06:14, 14 February 2009 (Undid revision 269953049 by 220.237.144.125 (talk) sex is obviously red, not beige). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The HTML 4.01 specification[1] defines sixteen named colors, as follows (names are defined in this context to be case-insensitive; the table is alphabetically ordered):

CSS 1–2.0, HTML 3.2–4, and VGA color names
Name Hex
(RGB)
Red
(RGB)
Green
(RGB)
Blue
(RGB)
Hue
(HSL/HSV)
Satur.
(HSL)
Light
(HSL)
Satur.
(HSV)
Value
(HSV)
CGA number (name); alias
White #FFFFFF 100% 100% 100% 0° 0% 100% 0% 100% 15 (white)
Silver #C0C0C0 75% 75% 75% 0° 0% 75% 0% 75% 07 (light gray)
Gray #808080 50% 50% 50% 0° 0% 50% 0% 50% 08 (dark gray)
Black #000000 0% 0% 0% 0° 0% 0% 0% 0% 00 (black)
Red #FF0000 100% 0% 0% 0° 100% 50% 100% 100% 12 (high red)
Maroon #800000 50% 0% 0% 0° 100% 25% 100% 50% 04 (low red)
Yellow #FFFF00 100% 100% 0% 60° 100% 50% 100% 100% 14 (yellow)
Olive #808000 50% 50% 0% 60° 100% 25% 100% 50% 06 (brown)
Lime #00FF00 0% 100% 0% 120° 100% 50% 100% 100% 10 (high green); green
Green #008000 0% 50% 0% 120° 100% 25% 100% 50% 02 (low green)
Aqua #00FFFF 0% 100% 100% 180° 100% 50% 100% 100% 11 (high cyan); cyan
Teal #008080 0% 50% 50% 180° 100% 25% 100% 50% 03 (low cyan)
Blue #0000FF 0% 0% 100% 240° 100% 50% 100% 100% 09 (high blue)
Navy #000080 0% 0% 50% 240° 100% 25% 100% 50% 01 (low blue)
Fuchsia #FF00FF 100% 0% 100% 300° 100% 50% 100% 100% 13 (high magenta); magenta
Purple #800080 50% 0% 50% 300° 100% 25% 100% 50% 05 (low magenta)

These 16 were also specified as sRGB and included in the HTML 3.0 specification which noted "These colors were originally picked as being the standard 16 colors supported with the Windows VGA palette." It should be noted that fuchsia is exactly the same as magenta (in the list below) and similarly aqua is exactly the same as cyan. [2]

It should be mentioned that all color values from #000000 - #FFFFFF (16,777,216 colors) are valid.

Nonstandard HTML recognizes other X11 color names, including "orange," "darkgray" (which, ironically, is lighter than gray), "darkorange," "lightgray," "darkgreen," "beige," "tan," "brown" and others.

Combinations

Combination of HTML background and text colors.

Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined Template:Combined

References