# Color Blindness: Designing for Color Vision Deficiency

Source: https://allyway.ai/glossary/color-blindness

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](https://allyway.ai/glossary/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](https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html) – Level A, the lowest level of [WCAG 2.2](https://allyway.ai/regulations/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](https://allyway.ai/glossary/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.

> **Tip:** > **The grayscale test**
> If your page still makes sense in black and white, it works for nearly all forms of color vision deficiency.

## Examples

```html title="Example"
<!-- 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.

**Do:** Do

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](https://allyway.ai/glossary/color-contrast) and [non-text contrast](https://allyway.ai/glossary/non-text-contrast) as well.

**Don't:** Don't

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

Q: How common is color blindness?
A: 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.

Q: Which colors should I avoid for color blind users?
A: 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.

Q: Do I have to make my website accessible for color blindness?
A: 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](https://allyway.ai/regulations/eaa) rely on.

Q: Is good contrast enough for color blind users?
A: 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](https://allyway.ai/free-wcag-contrast-checker) shows how two colors compare in lightness.
