Previous Message
Next Message

CSS Specifying HEX Color Codes?

Sent by Christoph Päper on 15 November 2003 13:01


*swap*:
>
> HEX COLORS: is #fff better than #ffffff ?

It's the same, but with three digit codes you're using almost only so-called
"web-safe" colors.

> and, is it okay to mix 3s and 6s in the same sheet?

Sure, it only depends on the author's habits and likings. You can also use and
mix with "rgb(255, 255, 255)", "rgb(100%, 100%, 100%)" and "white". CSS3 will
even have more methods (HSL and RGB with alpha value).

> Some HEX colors don't seem to have an abbreviation.

What do you mean by "abbreviation"? There are only 16 color keywords in
CSS2*), 256 variations with three digit hex codes and 16.777 million with 6
digits or decimal rgb().

*) Yes, there are also the X11/SVG color names in CSS3: Color and already
recognized by most browsers for years, but I pretend they aren't there,
because they're highly illogic and unsystematic, thus unusable.
And can anyone tell me, why system color keywords should be written MixedCase,
while X11/SVG ones are given alllowercase and the one for the current color in
camelCase in the CR? Yes, I've reported that to the editors.

> In two of the books I'm researching the authors call for
> "RGB" designations.

All color values in CSS2 correspond to the sRGB color space (as opposed to
e.g. CMYK), and thus are designations thereof. HSL is unambiguously
convertible to RGB.

> The background is supposed to be an ochre/tan color similar
> to PMS #466

Not every color space is correctly mappable to sRGB. AFAIK PMS (Pantone
Matching System), like RAL etc., is intended for physical world use, which are
only unreliably resembled on screens. Hint: subtractive vs. additive color
models.

> Will using the RGB style tag

¿Que? You mean "rgb($red, $green, $blue)"?

> render these colors more faithfully across platforms and monitors?

You want color profiles. The various notations are just that, notations.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: