Designing for color blindness
People see color differently, and many cannot easily tell red from green. If you convey information with color alone, these users can miss important details. Here are the principles for designs that still read when the hues look alike.
Types of color vision deficiency
Color vision deficiency comes from differences in the cells of the eye that sense color. The most common type makes red and green hues hard to separate; it goes by names such as protanopia and deuteranopia and is more common in men. Difficulty with blue and yellow, or seeing almost no color, is much rarer. Remember, too, that a designer without color vision deficiency will not easily notice the problem. That is why you need the habit of checking against a list rather than asking whether it looks fine to you.
The key point is that these people usually do see color; certain pairs simply look alike. Red and green, green and brown, and blue and purple of similar lightness are the pairs that get confused most.
Never rely on color alone
The accessibility guidelines (WCAG) also say color must not be the only way to convey information. If an input error is shown only by a red border, or chart lines differ only in color, some users cannot tell them apart.
- Add text or icons — next to the red border put a short message such as Required field and a warning icon.
- Patterns and shapes — in charts, use solid and dashed lines, circle and square markers.
- Direct labels — write the name at the end of each line instead of a separate legend that forces color matching.
- Underlines — keep links inside body text underlined, not just colored.
Use lightness differences
People who see two hues as similar generally still perceive differences in lightness. So two colors that must be told apart should differ clearly in lightness as well as hue. A red and a green of equal lightness are risky, but a dark red next to a light lime is easy to separate.
An easy test is to view the design in grayscale. If the two colors are distinguishable in black and white, they will be distinguishable for most users with color vision deficiency. You can also measure the contrast ratio between two colors in the contrast checker to get a number for the lightness gap; 3:1 or more is usually comfortable.