Use sufficient color contrast for text.
When the contrast between the color of text and the background behind it is too low, it can be difficult for users to read that text. You can test the contrast of your colors with this color contrast checker.

Use color blindness friendly colors.
Essentially, color vision in the human eye is made possible by three groups of receptors called "cones" that perceive different wavelengths of light: blue cones (short wavelengths), green cones (medium wavelengths), and red cones (long wavelengths).

Color blindness or color vision deficiency (CVD) is a modification or absence of one or more of these cones.
| Blue |
Green |
Red |
Condition |
| X |
X |
X |
Trichromasy (full color vision) |
| X |
X |
|
Protanomly (red-weakness) or Protanopia (red-blindness) |
| X |
|
X |
Deuteranomaly (green-weakness) or Deuteranopia (green-blindness) |
| |
X |
X |
Tritanomaly (blue-weakness) or Tritanopia (blue-blindness) |
| X |
|
|
Blue-Cone Monochramacy (only blue cones) |
| |
|
|
Achromatopsia (monochromacy, true color blindness) or Dyschromatopsia |
Although we can't say for sure what different types of color vision look like, we can simulate the effects to see what color combinations might be difficult to distinguish. Below is a diagram showing a full-color palette alongside simulated palettes for red, green, and blue color blindness.

Deuteranomaly (green-weakness) is by far the most common condition and, collectively, deuteranomaly (green-weakness), deuteranopia (green-blindness), protanomly (red weakness), and protanopia (red-blindness) are known as red-green color blindness because they involve difficulty distinguishing between red and green. Because all of these conditions have difficulty distinguishing red and green, it is particularly important to pay attention to anywhere you have used a red/green color scheme and to consider replacing it with a more color-blindness friendly color palette such as blue/red or purple/green.

To test other aspects of color blindness accessibility for your visualization, try viewing it in grey-scale or use a tool such as the Coblis Color Blindness Simulator. To get additional help choosing color-blind safe colors, try online tools such as Viz Palette.
Label data directly.
For visualizations with color legends, consider labelling the chart directly to reduce reliance on the legend or add a second encoding such as different line strokes to make it easier to map the legend to the data.

Indicate error states with more than just color.
If you have error states or error messages, indicate them with more than just color to ensure that color is not required to identify them. For example, consider adding a symbol in front of your error messages that clearly marks them as errors.