Back to CSS1 Reference
PROPERTIES | UNITS


Where a property requires a <color> value, the following are allowed:

named
One of the following named values (#rrggbb equivalents shown):
 black   | grey    | silver  | white   
 #000000 | #808080 | #C0C0C0 | #FFFFFF 
---------+---------+---------+---------
 navy    | blue    | olive   | yellow  
 #000080 | #0000FF | #808000 | #FFFF00 
---------+---------+---------+---------
 green   | lime    | purple  | fushia  
 #008000 | #00FF00 | #800080 | #FF00FF 
---------+---------+---------+---------
 teal    | aqua    | maroon  | red     
 #008080 | #00FFFF | #800000 | #FF0000 
---------+---------+---------+---------
#rgb
r, g, and b are hexadecimal numbers. The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, not by adding zeros.
#rrggbb
r, g, and b are hexadecimal numbers.
rgb(n,n,n)
n's are integers in range 0-255
rgb(x%,x%,x%)
x are float numbers in range 0-100

Log in or register to write something here or to contact authors.