You can use visual characteristics, like color or shape, to reinforce meaning. However, when doing this, you must include real text conveying the same information. This ensures that all readers can access the information, including colorblind readers, readers with low vision, and users of assistive technology.
Text data labels must be provided for each meaningful element in a data visualization. This ensures that color vision and the ability to distinguish shapes or patterns are not required to understand the visualizations. It also ensures that people who use assistive technology, such as screen readers, have access to the same information.
When it comes to color contrast, regular-sized text must have a contrast ratio of 4:5 to 1. Large-scale text must have a contrast ratio of 3 to 1. Large-scale text is defined as “at least 18 point or 14 point bold or font size.”
Furthermore, adjacent colors in a data visualization must have 3:1 color contrast. In practice, it can be very challenging to select a color palette with 4 or more colors that will provide consistent 3:1 color contrast in all possible combinations. If using multiple colors for a data visualization, the easiest way to meet this WCAG requirement is to create black borders around all distinct visual elements in a data visualization and ensure that all colors in your palette have at least 3:1 contrast with black.
We recommend creating a black border of at least 2 pixels (px) width around bars, “pie pieces,” or other distinct elements in a visual. To add a border around a visual element in Tableau, click on “Colors” under the marks, and then click Border. In the current version of Power BI, it is also possible to create borders around distinct visual elements in a visual.
Also note that only four of the ten colors in Tableau’s “colorblind-friendly” color palette meet the 3:1 contrast ratio requirement from WCAG Success Criterion 1.4.11 Non-text Contrast against a white (#FFFFFF) background (Blue: #1170AA, Brown: #C85200, Gray: #7B848F and Dark Gray: #57606C). However, the new OHA Graphic Standards Manual (available on the OWL) includes guidance on which color combinations meet WCAG’s contrast requirements for text and non-text.
The Health Policy and Analytics Division Infrastructure for Data Engagement and Access (IDEA) team has prepared a Tableau preferences file, Power BI theme file, and Microsoft theme file that align with the OHA Graphic Standards Manual (available at their OWL page) to create a custom color palette in Tableau Desktop.
Relevant Standards