Information provided by color


Information provided by color refers to any situation where a color difference is the only means of conveying meaning in a web interface. A field in red to signal an error, a link without an underline, a chart without labels: all cases where a color-blind person can lose the information. WCAG criterion 1.4.1 (level A) and RGAA criterion 3.1 require always doubling the color with another visual indicator.


A form field surrounded by red to signal an error. No text, no icon. Just red. About 1 in 12 men has trouble telling certain colors apart, according to the US National Eye Institute. A color-blind person still sees the border but may not make out its red, and the error goes unnoticed. And they are not the only ones affected: a screen in sunlight, monochrome mode, black and white printing. Color is never guaranteed.

#What the rule requires

WCAG criterion 1.4.1 (level A, the minimum) boils down to one sentence: color must not be the only visual means of conveying information, indicating an action, or distinguishing an element. RGAA takes up this requirement in criterion 3.1.

The rule does not say "do not use color". It says: double it. Text, icon, pattern, underline, shape. Any additional indicator is sufficient.

#Three pitfalls you encounter every day

Forms. Required fields marked only by a red border, instead of the word "required" or an explained asterisk, validation errors indicated by a colored background. The fix comes down to a few attributes:

<!-- Non-conformant: color alone -->
<input style="border-color: red;" />
 
<!-- Conformant: color + text + attribute -->
<input aria-invalid="true" aria-describedby="err-email" />
<span id="err-email">Invalid email address.</span>

Links in text. A link in the same font as the surrounding text, distinguished only by its blue tint. Without underlining, a color-blind person may see only a word among others. The detail that many ignore: even with a different color, there must be a contrast ratio of at least 3:1 between the link and the surrounding text for the difference to be noticeable.

Free color contrast checker: test your colors against WCAG

Charts. Curves or bars differentiated only by color, with an equally colored legend. Add patterns (hatching, dashes) or direct labels on each series. This is the only way to make a chart readable for everyone.

#The traffic light analogy

A traffic signal doesn't rely on its colors alone: its position speaks too. Red at the top, orange in the middle, green at the bottom. Your interface should offer the same type of redundancy. A Status column colored like a traffic light has no position to help it, so a word written next to each dot does that job.

#In summary

Convert your page to grayscale. If information disappears, there is a missing visual indicator. Text, icon, or shape—the choice is yours.

Share this article

Learn more