HTML color names

From Wikipedia, the free encyclopedia
Jump to: navigation, search

In HTML, documents using 4.01 specifications[1] colors can be specified by name. Names are defined in this context to be case-insensitive. Using colors in HTML has been deprecated in favor of CSS.

CSS 1–2.0 / HTML 3.2–4 / VGA color names
Name Hex triplet Red Green Blue Hue Satur Light Satur Value CGA number (name); alias
White #FFFFFF 100% 100% 100% &10000000000000000000000 0% 100% 0% 100% 15 (white)
Silver #C0C0C0 75% 75% 75% &10000000000000000000000 0% 75% 0% 75% 07 (light gray)
Gray #808080 50% 50% 50% &10000000000000000000000 0% 50% 0% 50% 08 (dark gray)
Black #000000 0% 0% 0% &10000000000000000000000 0% 0% 0% 0% 00 (black)
Red #FF0000 100% 0% 0% &10000000000000000000000 100% 50% 100% 100% 12 (high red)
Maroon #800000 50% 0% 0% &10000000000000000000000 100% 25% 100% 50% 04 (low red)
Yellow #FFFF00 100% 100% 0% &1000000000000006000000060° 100% 50% 100% 100% 14 (yellow)
Olive #808000 50% 50% 0% &1000000000000006000000060° 100% 25% 100% 50% 06 (brown)
Lime #00FF00 0% 100% 0% &10000000000000120000000120° 100% 50% 100% 100% 10 (high green); green
Green #008000 0% 50% 0% &10000000000000120000000120° 100% 25% 100% 50% 02 (low green)
Aqua #00FFFF 0% 100% 100% &10000000000000180000000180° 100% 50% 100% 100% 11 (high cyan); cyan
Teal #008080 0% 50% 50% &10000000000000180000000180° 100% 25% 100% 50% 03 (low cyan)
Blue #0000FF 0% 0% 100% &10000000000000240000000240° 100% 50% 100% 100% 09 (high blue)
Navy #000080 0% 0% 50% &10000000000000240000000240° 100% 25% 100% 50% 01 (low blue)
Fuchsia #FF00FF 100% 0% 100% &10000000000000300000000300° 100% 50% 100% 100% 13 (high magenta); magenta
Purple #800080 50% 0% 50% &10000000000000300000000300° 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." Fuchsia is exactly the same as magenta (in the list below) and similarly aqua is exactly the same as cyan. [2] Gray is often spelled grey.

All major browsers support an extended (nonstandard) set of names, the X11 color names as specified in CSS3.[3][4]

[edit] References

  1. ^ HTML 4.01 Specification section 6.5 "Colors"
  2. ^ HTML 3.2 Specification "The BODY element"
  3. ^ CSS Color Names
  4. ^ CSS Color Module Level 3
Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages