Jump to content

Color Names and RGB Values with Wide Browser Support

+ 2
  dannyg1's Photo
Posted Oct 28 2009 10:13 AM

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 (*).

Color name Red Green Blue Red Green Blue
   aliceblueF0F8FF240248255
   antiquewhiteFAEBD7250235215
   aqua*00FFFF0255255
   aquamarine7FFFD4127255212
   azureF0FFFF240255255
   beigeF5F5DC245245220
   bisqueFFE4C4255228196
   black*000000000
   blanchedalmondFFEBCD255235205
   blue*0000FF00255
   blueviolet8A2BE213843226
   brownA52A2A1654242
   burlywoodDEB887222184135
   cadetblue5F9EA095158160
   chartreuse7FFF001272550
   chocolateD2691E21010530
   coralFF7F5025512780
   cornflowerblue6495ED100149237
   cornsilkFFF8DC255248220
   crimsonDC143C2202060
   cyan00FFFF0255255
   darkblue00008B00139
   darkcyan008B8B0139139
   darkgoldenrodB8860B18413411
   darkgrayA9A9A9169169169
   darkgreen00640001000
   darkgreyA9A9A9169169169
   darkkhakiBDB76B189183107
   darkmagenta8B008B1390139
   darkolivegreen556B2F8510747
   darkorangeFF8C002551400
   darkorchid9932CC15350204
   darkred8B000013900
   darksalmonE9967A233150122
   darkseagreen8FBC8F143188143
   darkslateblue483D8B7261139
   darkslategray2F4F4F477979
   darkslategrey2F4F4F477979
   darkturquoise00CED10206209
   darkviolet9400D31480211
   deeppinkFF149325520147
   deepskyblue00BFFF0191255
   dimgray696969105105105
   dimgrey696969105105105
   dodgerblue1E90FF30144255
   firebrickB222221783434
   floralwhiteFFFAF0255250240
   forestgreen228B223413934
   fuchsia*FF00FF2550255
   gainsboroDCDCDC220220220
   ghostwhiteF8F8FF248248255
   goldFFD7002552150
   goldenrodDAA52021816532
   gray*808080128128128
   grey808080128128128
   green*00800001280
   greenyellowADFF2F17325547
   honeydewF0FFF0240255240
   hotpinkFF69B4255105180
   indianredCD5C5C2059292
   indigo4B0082750130
   ivoryFFFFF0255255240
   khakiF0E68C240230140
   lavenderE6E6FA230230250
   lavenderblushFFF0F5255240245
   lawngreen7CFC001242520
   lemonchiffonFFFACD255250205
   lightblueADD8E6173216230
   lightcoralF08080240128128
   lightcyanE0FFFF224255255
   lightgoldenrodyellowFAFAD2250250210
   lightgrayD3D3D3211211211
   lightgreen90EE90144238144
   lightgreyD3D3D3211211211
   lightpinkFFB6C1255182193
   lightsalmonFFA07A255160122
   lightseagreen20B2AA32178170
   lightskyblue87CEFA135206250
   lightslategray778899119136153
   lightslategrey778899119136153
   lightsteelblueB0C4DE176196222
   lightyellowFFFFE0255255224
   lime*00FF0002550
   limegreen32CD325020550
   linenFAF0E6250240230
   magentaFF00FF2550255
   maroon*80000012800
   mediumaquamarine66CDAA102205170
   mediumblue0000CD00205
   mediumorchidBA55D318685211
   mediumpurple9370DB147112219
   mediumseagreen3CB37160179113
   mediumslateblue7B68EE123104238
   mediumspringgreen00FA9A0250154
   mediumturquoise48D1CC72209204
   mediumvioletredC7158519921133
   midnightblue1919702525112
   mintcreamF5FFFA245255250
   mistyroseFFE4E1255228225
   moccasinFFE4B5255228181
   navajowhiteFFDEAD255222173
   navy*00008000128
   oldlaceFDF5E6253245230
   olive*8080001281280
   olivedrab6B8E2310714235
   orangeFFA5002551650
   orangeredFF4500255690
   orchidDA70D6218112214
   palegoldenrodEEE8AA238232170
   palegreen98FB98152251152
   paleturquoiseAFEEEE175238238
   palevioletredDB7093219112147
   papayawhipFFEFD5255239213
   peachpuffFFDAB9255218185
   peruCD853F20513363
   pinkFFC0CB255192203
   plumDDA0DD221160221
   powderblueB0E0E6176224230
   purple*8000801280128
   red*FF000025500
   rosybrownBC8F8F188143143
   royalblue4169E165105225
   saddlebrown8B45131396919
   salmonFA8072250128114
   sandybrownF4A46024416496
   seagreen2E8B574613987
   seashellFFF5EE255245238
   siennaA0522D1608245
   silver*C0C0C0192192192
   skyblue87CEEB135206235
   slateblue6A5ACD10690205
   slategray708090112128144
   slategrey708090112128144
   snowFFFAFA255250250
   springgreen00FF7F0255127
   steelblue4682B470130180
   tanD2B48C210180140
   teal*0080800128128
   thistleD8BFD8216191216
   tomatoFF63472559971
   turquoise40E0D064224208
   violetEE82EE238130238
   wheatF5DEB3245222179
   white*FFFFFF255255255
   whitesmokeF5F5F5245245245
   yellow*FFFF002552550
   yellowgreen9ACD3215420550
Dynamic HTML: The Definitive Reference

Learn more about this topic from Dynamic HTML: The Definitive Reference, 3rd Edition.

Packed with information on the latest web specifications and browser features, this new edition is your ultimate one-stop resource for HTML, XHTML, CSS, Document Object Model (DOM), and Javascript development. Here is the comprehensive reference for designers of Rich Internet Applications who need to operate in all modern browsers, including Internet Explorer 7, Firefox 2, Safari, and Opera. You can instantly see browser support for the latest standards-based technologies.

See what you'll learn


Tags:
1 Subscribe


1 Reply

0
  allogarage's Photo
Posted Dec 06 2011 08:52 AM

it's not veryuseful and most of the time the color name takes longer char than the RGB value ones.