Creating an Accessible Color Palette
Color Contrast
The color of text and other important elements should contrast strongly against the background. Colors that are close in value are harder to read for those with low vision, as well as in certain contexts like in the glare of the sun.
When layering text over a background with variation, like a photo or gradient, consider adding a solid-color layer between them.
The dark text is all clearly legible against the white background, layered over a lavender pattern.
Putting together a robust color palette can save time and effort overall in designing for accessibility. Include an abundance of hues and values to provide more options and allow space for creativity.
This palette includes colors with a generous range of hues and values.
By starting with a diverse palette, plenty of options are available.
Contrast Testing Tools
To test color contrast against WCAG standards, use a tool such as:
Colour contrast checker – Easy to use.
Colour Contrast Analyser – Standalone desktop app with a dropper tool.
- Color Contrast Tool – Uses APCA, a newer method for measuring contrast.
- Contrast Grid – Evaluate a set of colors for compliant pairs.
Using More Than Just Color to Convey Meaning
Color is often used to signal a status change, visually differentiate between elements, or otherwise convey meaning. However, not all users perceive color the same way, such as those with limited vision or using system color filters. Be sure to include an additional method to effectively communicate to all users. This can include:
- Icon or shape
- Pattern
- Border or outline
- Text
- Value (dark versus light)
In addition to using color, this form field indicates its error state with an icon and helpful text.
Testing in Grayscale
To make sure a design is not relying on color for its content to be understandable, try viewing it in grayscale using color filters within the accessibility settings of your operating system: