Predefined Color Names – Alphabetical List

JavaScript FAQ | JavaScript Colors FAQ  

Question: What color names are supported by JavaScript?

Answer: Old browsers such as Internet Explorer 3.x supported only sixteen color names:

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

Newer browsers support many more color names (see an alphabetical list below). You can try all these colors here:

Note: The following pairs of color names are synonyms:

See also:
  • RGB to Hex color converter
  • Hex to RGB color converter
  • Hex to CMYK color converter
  • RGB to CMYK color converter  
  • RGB to HSV color converter
  • JavaScript Colors FAQ
  • Changing the page background color
  • Changing the color of HTML elements
  • Applying another stylesheet to my page
  • Changing the mouse cursor style


    Copyright © 1999-2012,