Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part III: Appendixes > Color Names and RGB Values

Appendix A. Color Names and RGB Values

Netscape was the first to deploy a library of color names (originally adopted from the X Window System palette known as X11 color names) that could be used as attribute and scripted object property color values in place of hexadecimal triplet values. Virtually all modern browsers support the use of these values, and CSS Level 3 puts the list into a published standard. Color names in both tag attributes, scripts, and CSS properties are case-insensitive. Typically, if you set a color attribute or property to one of the named colors, the object property is reflected in scripts as the hexadecimal triplet value for that color. For additional convenience, the following table also shows the decimal equivalents of the RGB value in case you use these color values in style sheet rules. Be aware that some colors in this collection require 16- or 24-bit color to achieve the proper hue.

A small subset of these colors—16 to be exact—appear within the HTML 4 specification. Those colors are shown in the table followed by an asterisk (*).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial