The use of color (e.g., highlighted text or text in another color) is not inherently non-compliant. There are two main questions to ask to determine if it is compliant:
- Is the color contrast high enough between the foreground and background colors?
- Is color alone being used to convey meaning?
Checking Contrast
Use one of the color contrast analyzer tools, found on the
ADA Checklist & Checkers page, to determine if contrast meets minimum requirements.
If the contrast between the foreground and background are not high enough, the colors need to be adjusted so that the contrast meets the WCAG AA minimum color contrast.
- Text smaller than 18pt (or bold 14pt) should display a minimum contrast ratio of 4.5:1.
- Text larger than 18pt (or bold 14pt) should display a minimum contrast ratio of 3:1.
Examples
Color contrast example
The contrast ratio between the background color and text color is 2.35:1, which is too low to pass the WCAG minimum standards.
Color contrast example
Changing the font color corrects the error and changes the WCAG AA minimum color contrast to 8.91:1.
Color contrast example
Changing the background color corrects the error and changes the ratio to 17.24:1, which is high enough to pass the WCAG minimum standard.
Color That Conveys Meaning
It is acceptable to use color to convey meaning if an alternative method is used also. Please note: meaning is different than using color for emphasis. To determine if color alone is conveying meaning, see if the content is equally understandable when you remove the color.
Non-compliant Example
Study the acronyms below. All of the items in red will be on your midterm.
- CPR
- DNR
- EHR
- ICU
- NICU
- OTC
- SOP
If color alone is being used to convey meaning, use another means to indicate the same information for screen reader users and those with color blindness.
Compliant Example
Study the acronyms below. All of the items in red with an asterisk will be on your midterm.
- CPR*
- DNR
- EHR
- ICU*
- NICU
- OTC*
- SOP
Color as Emphasis or Decoration
If the contrast is high enough and if meaning is not being conveyed by color alone, the use of color is not an accessibility concern. It still may not be aesthetically pleasing, but this is a separate conversation and should not be presented as an ADA compliance issue.
Example
This may not be visually appealing and even MAY BE distracting, but it is ADA compliant.