This tip is a general rule that applies to many areas of web design, but I will focus on a specific example that is common among weblogs: link text.
There are two potential problems related to color. First, your link text may not contrast sufficiently with your background color. Any very light color on a white background is trouble; the link text may simply disappear into the background. Similarly, a dark color on a black background is trouble. This actually applies to all text, not just links, but it’s fairly common on weblogs for text to be readable and links to be made unintentionally unreadable, which is why I mention links in particular.
The second potential problem is the link decoration. If your CSS redefines a rule to make your links a different color, you need to make sure that the links are also distinguishable in some other way, like bold, italic, or underline. Otherwise, the link text might be perfectly readable, but colorblind people won’t be able to tell that it’s a link. This is illustrated below.
Michael benefits. Here is a sample screenshot of three different decoration schemes for links.

As shown, the link in the first sentence uses the default scheme, and displays blue/purple and underlined in visual browsers. The second link has two forms of text decoration applied, and displays bold and red (but not underlined). The third link has only one form of text decoration applied, and displays only as red.
Now here are the same three links, as Michael sees them.

As shown, the blueness of the first link disappears; the link text appears the same color as the rest of the sentence. However, the link is still underlined. In the second sentence, the redness of the link disappears, but the link still appears bold. The problem occurs in the third link, which was previously only distinguished by its redness; now that the redness has faded to black, it is virtually impossible to tell which word is a link and which words are normal text.
To check for “sufficient contrast” between your text color and background color, use VisCheck to simulate what your web page looks like to a colorblind reader.
To check for link decoration problems, look at your CSS rules for “a” tags. For example, if you have a rule like this in your CSS, then your links are only distinguished by their redness, which is no good:
a { text-decoration: none; color: red; }
You can keep your links red, but you need to make sure that the links are also bold, or underlined, or italicized. To make them bold as well as red, add one line:
a { text-decoration: none; color: red; font-weight: bold; /* add this line */ }
§
I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)
§
© 2001–9 Mark Pilgrim