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

color representation

From: <MWhisman@aol.com>
Date: Fri, 5 Mar 1999 16:19:24 EST
Message-ID: <ddbd11ca.36e04a5c@aol.com>
To: www-svg@w3.org
I would love to see the ability, in HTML, CSS, and forthcoming SVG, to provide
meaningful names to colors, and to allow the CMYK and HLS/HSB (hue,
lightness/brightness, saturation) color models. With the addition of
(separate) attributes like transparency, spot/process, overprint/knockout, and
values none and inherit, this would provide each form of markup language with
capabilities like those of Adobe's and Macromedia's programs, with which most
artists are familiar. Support for color libraries, such as Pantone colors,
would be needed too.

Yes, I'm aware of the 16 predefined HTML/CSS color names, and yes, I'm aware
of the additional 140-some colors supported by many browsers. If you look at
the definitions in hex of those 140 colors, some, e.g. Brown, are not very
close, either on-screen or in-print, to what most would consider that color
name to be.

For examples of what I'm suggesting, something like:

P { color: cmyk(100%, 50%, 0%, 0%); } /* Cyan-Blue */


color-def ( #FF8000, "Orange" );
P { color: Orange; }


color-list {
	color-def (#FF8000, "Orange");
	color-def (cmyk(33%, 83%, 100%, 0%), "MyRust");
	color-def (hls(210deg, 50%, 100%), "Cyan-Blue");

I made a similar suggestion in www-style awhile back, and the List of
Suggestions for CSS3 and discussion suggest something like this will be done.

It seemed to me that SVG should consider this too.

Keep on drawing and coding! I'm eager for SVG1 to appear and be a standard
browser component.

Ben Whisman
Received on Friday, 5 March 1999 16:21:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:46 UTC