XML technologies / CSS / Advanced websites with CSS / Adding some color / Choosing and combining colors
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
Suitable color combinations matter in web design. If you have seen bright green text shimmering on light blue, you know why.
Adjacent surfaces and text-background combinations especially need compatible colors. Basic artistic principles help as much in web design as landscape painting.
Start with a color wheel. Hundreds of sites offer variations. One of the clearest explanations comes from Color Wheel Pro™’s developers in “Color Theory Basics”.
Choose a wheel containing the hues you want. Adjacent colors differing gradually are harmonious and suit neighboring surfaces. Two or three neighboring colors on large areas such as backgrounds or menus can create attractive effects.
For greater contrast, as between text and background, choose colors as nearly opposite as possible on the wheel. These are complementary colors. For three colors, center an equilateral triangle on the wheel and use the colors at its corners.
Graphics programs and web editors provide palettes easier to explore than RGB values in CSS. Most also offer the 216 “web-safe” colors ( web-safe colors), supported by all systems and browsers.
Colored text on colored backgrounds can shimmer or blur and impair readability. Finding combinations by trial and error takes considerable time, but some desired effects require effort. Online help includes the excellent Paletton’s Color Scheme Designer. Click a wheel color to see matching colors.
The site also lists color-blindness types with matching filters. Choosing one shows colors as an affected person sees them. Experimenting reveals the difficulty of distinguishing certain shades.
Avoid unreadable color combinations and ensure content remains understandable without color. Do not convey information through color alone: differently colored icons without text may be indistinguishable to some users. Visit Vischeck to view your page as a color-blind person would.
Some unconventional combinations defy textbook rules and work beautifully. Try unusual colors, but always test thoroughly before publishing them.
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg
back to top