Use of color

While color contrast is often primarily an aesthetic choice, the use of color on a website pertains to using color to communicate information. WCAG guideline 1.4.1 on the use of color requires that "color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element."

Solution

Use another factor in addition to color to convey information. For example, to indicate form validation errors, you can change the labels of the relevant fields by another font attribute as well as by color. Icons and symbols should differ by shape as well as by color.

To accommodate users with color vision disorders ("color blindness"), be careful when using a "stoplight" color metaphor, with green indicating "good" values and red indicating "bad" values. Users with red-green color blindness have trouble distinguishing red and green, and so may not be able to tell these values apart. Using an additional factor to signal "good" vs. "bad" is necessary. Avoid pure red and green in this situation; a reddish-orange and a bluish-green areย  distinguishable by color blind users, while still conveying the cultural "good" and "bad" meanings to users with normal color vision. Color contrast can be helpful in this context, as well, if one color is darker or lighter than the other.

1.4.1 Use of color (A)
Color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element.

See also