W3C home > Mailing lists > Public > www-svg@w3.org > March 1999

Re: Request for information.

From: <MWhisman@aol.com>
Date: Thu, 4 Mar 1999 14:22:33 EST
Message-ID: <dbb0c3cd.36dedd79@aol.com>
To: www-svg@w3.org
maggieomally@sprint.ca
wrote asking about color codes.

There are 16 predefined color names in HTML and CSS:

Red, Lime, Blue, Aqua, Fuchsia, Yellow
Maroon, Green, Navy, Teal, Purple, Olive
Black, Gray, Silver, White

There are other color names defined, but they are non-standard, so you're
better off using the standard names or the standard numeric method below. 

You can also specify colors as hexadecimal sRGB values. For example, here is a
light blue: #99CCFF, and here is a rusty brown: #993300.

Browser- or "web-safe" colors are colors that any web browser can view non-
dithered (solid) regardless of their graphics system's color depth. Use values
00, 33, 66, 99, CC, and FF in your colors and they'll be safe. You can define
any RGB color, such as #ABCDEF, but they may appear dithered (speckled) to
visitors with poor graphics capabilities. 

Sorry, no way of defining in CMYK, if you're familiar with that.

There are lots of good books and websites out there that explain color usage
in HTML and CSS.
Received on Thursday, 4 March 1999 14:29:08 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:17 GMT