Color Blindness: Designing for Color Vision Deficiency
Also called: Color vision deficiency, Colour blindness, CVD, Red-green color blindness
Definition
Color blindness, or color vision deficiency, is a reduced ability to tell certain colors apart. On the web it means that information shown only through color – red error fields, green status dots, links marked only by color – can be missed.
Color blindness means that a person sees some colors differently or cannot tell them apart, for example red and green. It is common: W3C's low vision draft puts color vision deficiency at about 8 % of men and 1 in 200 women. If a website uses color as the only signal for errors, status or links, these visitors simply do not get the message.
What it means
Color vision deficiency comes in different forms and strengths. Most people with it still see colors, but certain pairs look alike, so a difference that is obvious to the designer may not exist for them. Older users and people with low vision also often see colors less well, and some people browse in grayscale or high-contrast mode.
That is why WCAG 1.4.1 Use of Color – Level A, the lowest level of WCAG 2.2 – says color must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element. Color itself is fine; it just needs a second cue such as text, an icon, a pattern or an underline. The full rule, with every exception, is explained in the entry on use of color.
| Situation | Problem for color blind users | Second cue |
|---|---|---|
| Form errors | Red border looks like the normal border | Error text and an icon next to the field |
| Links in text | Blue link looks like black text | Underline, or 3:1 contrast to the text plus a cue on hover and focus |
| Charts | Red and green lines look the same | Labels on the lines, patterns, different shapes |
| Status | Green and red dots look the same | Words such as "In stock" / "Sold out" |
| Required fields | Red label only | An asterisk with an explanation, or "(required)" |
Color blindness is not a contrast problem: two colors with strong hue differences can have almost the same lightness. The common red #d93025 and green #188038 both pass 4.5:1 against white, but against each other they reach only 1.05:1 – in grayscale they are indistinguishable.
Examples
<!-- Color only: the error is invisible to many color blind users -->
<input id="email" style="border-color:#d93025">
<!-- Color plus text and icon -->
<label for="email2">Email</label>
<input id="email2" aria-invalid="true" aria-describedby="email2-error">
<p id="email2-error">⚠ Please enter a valid email address.</p>
<!-- Link in body text: underlined, so color is not the only cue -->
<p>Read our <a href="/returns" style="color:#1a5fb4; text-decoration:underline">returns policy</a>.</p>Without the underline, #1a5fb4 on black body text would reach 3.34:1 – just enough for the 3:1 link exception, but only with an extra cue on hover and focus.
Pair every color code with text, an icon, a pattern or a shape. Keep links in body text underlined. Label chart lines directly. Check color contrast and non-text contrast as well.
Mark errors only with a red border, show "available" and "sold out" only as green and red dots, write "fields in red are required" or explain a chart only through its legend colors.
How to check for color blindness
Questions
How common is color blindness?
W3C's low vision draft states that about 8 % of men and 1 in 200 women have a color vision deficiency. W3C notes that these deficiencies are often not counted as a disability – but they still decide whether people get your information.
Which colors should I avoid for color blind users?
No color is forbidden. Avoid pairs that only differ in hue, such as red and green, as the only signal, and always add a label, icon or pattern.
Do I have to make my website accessible for color blindness?
Yes, if you follow WCAG. Use of Color is a Level A criterion, so it is part of every conformance level that laws such as the European Accessibility Act rely on.
Is good contrast enough for color blind users?
Not on its own. Contrast helps people read text, but two colors with different hues can still look identical. You need a second cue besides color. The free contrast checker shows how two colors compare in lightness.
Related terms
Use of Color: Never Rely on Color Alone
Use of Color is WCAG success criterion 1.4.1. Color must not be the only visual means of conveying information, indicating an action, prompting a response or distinguishing a visual element.
Read definition: Use of Color: Never Rely on Color AloneColor Contrast: WCAG Ratios and How to Check Them
Color contrast is the difference in brightness between text or interface elements and their background, measured as a ratio from 1:1 to 21:1. WCAG requires at least 4.5:1 for normal text and 3:1 for large text.
Read definition: Color Contrast: WCAG Ratios and How to Check ThemNon-text Contrast: 3:1 for Icons, Borders and Focus
Non-text Contrast is WCAG success criterion 1.4.11. The visual parts needed to identify user interface components and their states, and the parts of graphics needed to understand content, must have a contrast ratio of at least 3:1 against adjacent colors.
Read definition: Non-text Contrast: 3:1 for Icons, Borders and FocusLow Vision: What It Means for Web Design
Low vision means a visual impairment other than blindness that glasses or contact lenses do not fully correct, such as blurred vision, loss of central or side vision, sensitivity to light or reduced contrast sensitivity. Most people with low vision read websites with their eyes, often with zoom, magnification or custom colors.
Read definition: Low Vision: What It Means for Web Design