BrowseAtWork.com:   [ UP ]   [Manage cookies]

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.

Color Hexadecimal Color Hexadecimal Color Hexadecimal Color Hexadecimal
aqua / cyan #00FFFF gray #808080 navy #000080 silver #C0C0C0
black #000000 green #008000 olive #808000 teal #008080
blue #0000FF lime #00FF00 purple #800080 white #FFFFFF
fuchsia / magenta #FF00FF maroon #800000 red #FF0000 yellow #FFFF00

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]

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