tags:

views:

133

answers:

5

Those fit for background colors.

I need as many as possible:)

+8  A: 

The W3Schools website contains a complete list of all named colours. These include a fairly wide selection of light, medium, and dark shades.

According to the website, they should all be supported by the major browsers (IE, Firefox, Safari, etc.) - so fortunately no need to worry about standards support here.

Noldorin
Easy, simple and correct!
Dorjan
Misleading - while they have a disclaimer in tiny print at the bottom, the heading implies those colours are part of CSS.
David Dorward
@David: The OP was not asking what colours are supported by the official CSS standard (which is set by W3C for that matter) - I simply provided a list of what can be used and render correctly in almost anyone's browser. Agreed that one can be easily mistaken about that, however.
Noldorin
The X11 colours are sort-of-CSS; they're proposed for CSS3, they're explicitly allowed in SVG, and they work in every browser. I wouldn't bother with them, though, really, since nobody needs the so-called ‘web safe palette’ today (and it was never really web-safe in the first place). You might as well use any old rgb() triplet; the readability advantage is lost when so many of the X11 names are bizarre or misleading.
bobince
A: 

...

http://www.google.co.uk/search?q=css+named+colors

w3c html/css standards only specify 16 colours:

aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal white yellow

everything else is non-standard - use hexcode instead.

fusi
To whoever downvoted: try cutting newbie some slack.@fusi: Just posting an answer pointing to a google search is going to get downvoted. We want SO to be _the_ go to site for answers not site contianing links to searches which may have an answer. You added text to the answer later, had you done so upfront and placed the link at the bottom as reference and included the detail you are refering to strict CSS compliance then this answer may have done better.
AnthonyWJones
Thanks Anthony
fusi
+2  A: 

You can always compile your own colors:

background: rgb(245, 255, 255);

where the first property is the ammount of Red, the second is the ammount of Green and the third is the ammount of Blue.

As long as you keep the values high (where 255 is max) the color will be light ;)

Mickel
I don't quite understand why you say :As long as you keep the values high (where 255 is max) the color will be light
Shore
Yes. If all three values in the rgb-"function" are high, you will get a light color. In my example I set the red to 245 and the green and blue to 255, this gives us a light color with fairly more green and blue than red. You get it? You can play around with rgb-values and colors here: http://kuler.adobe.com/#create/fromacolor
Mickel
A: 

You can easily use css for gray colors, for example #ddd, or #e4e4e4,
They'll be gray as long as all three values (rgb) are the equals.

Kobi
A: 

CSS 2.1 only defines 16 named colours.

Most browsers support a much larger set, including colours from SVG. These are included in CSS 3 Colors (but not always all the alternative spellings, e.g. "grey" vs "gray").

Richard