Using color

Using color to differentiate between elements on a page is fine. However, you should avoid using color as the only visual means to differentiate parts of a page.

For example,

Use additional styling to indicate types of information including a change of shape or decoration.

Examples

Correct

Use symbols and colors in graphics.

Graphic with differently shaped symbols in black in white: graphic in color with differently shaped symbols Graphic with differently shaped symbols in black in white

Incorrect

Color used as the only indicator for information or functionality: Graphic: only color used (no symbols) Graphic: only color used (in black and white)

The easiest way to check whether your website may be usable by color-blind people is to test it in grayscale. When the color information is extracted, you can more easily see whether your website is still understandable.

Resources

WCAG Success Criteria for the use of color

Contributors: Joe Dolson, Maja Benke, Rian Rietveld.

Read how to contribute to this documentation.