the HTML 4.x specifications defines sixteen colour names that can be used instead of colour values in HTML. these colours are valid values for attributes such as the body element. the CSS2 specification also uses these colours as colour values which can be used with properties such as color, background-color or border-color. Indication is given whether the colours are Websafe (WS) or Reallysafe (RS).
HTML 4.01 & CSS2 Colours
Name
Hex 6
Hex 3
RGB
WS
RS
Sample
black
#000000
#000
0,0,0
yes
yes
silver
#C0C0C0
#CCC
192,192,192
no
no
gray
#808080
#888
128,128,128
no
no
white
#FFFFFF
#FFF
255,255,255
yes
yes
maroon
#800000
#800
128,0,0
no
no
red
#FF0000
#F00
255,0,0
yes
yes
purple
#800080
#808
128,0,128
no
no
fuchsia
#FF00FF
#F0F
255,0,255
yes
yes
green
#008000
#080
0,128,0
no
no
lime
#00FF00
#0F0
0,255,0
yes
yes
olive
#808000
#880
128,128,0
no
no
yellow
#FFFF00
#FF0
255,255,0
yes
yes
navy
#000080
#008
0,0,128
no
no
blue
#0000FF
#00F
0,0,255
yes
yes
teal
#008080
#088
0,128,128
no
no
aqua
#00FFFF
#0FF
0,255,255
yes
yes
In the table above, the HTML 4.01 and CSS2 colour names with their corresponding numerical values. Members of the Websafe and Reallysafe palletes are marked.