Back to course

F3 Accessible Content Basics

0% done: 0 of 7 lessons

Lesson 5 of 7 · Video

Color and contrast

Progress is saved on this device only. Keep it across devices with a free LFW account.

Curriculum0 of 7 done
1 minute 59 seconds. Captions are on. Narrated slides, and WebAIM's free public contrast checker. The narration is a synthesized voice; a recorded voice replaces it later.

Make text readable against its background, never carry meaning in color alone and check contrast with a free tool in a minute.

Notes

Step 1 of 5

Start here

Color is where design and accessibility meet. Two rules cover most of what an editor controls: text must stand out from its background, and color cannot be the only way you say something.

Step 2 of 5

Contrast: text people can read

Contrast is the difference in lightness between text and its background. Gray text on a white page, white text on a pale photo, and yellow on white are common failures. They hurt people with low vision, older readers, and everyone reading a phone in sunlight.

In the 2026 WebAIM Million, low contrast text was the most common failure: it appeared on 83.9 percent of the top one million home pages.

WCAG 2.1 AA sets the minimums as ratios:

  • Normal text: at least 4.5 to 1.
  • Large text, about 18 point, or 14 point bold: at least 3 to 1.
  • Icons and the edges of form fields that people need to see: at least 3 to 1 against what is next to them.

Black on white is 21 to 1. Mid-gray text on white often lands below 4.5 to 1.

Step 3 of 5

How to check, in a minute

You do not need to calculate anything. Free contrast checkers, such as the one from WebAIM, take two colors and tell you whether they pass. Many browsers' developer tools show contrast too.

As an editor, you usually choose colors only in a few places: text color buttons in the editor, banner and button colors in a page builder, and images with text on them. Check those.

If your site's standard colors fail, that is a fix for whoever manages the site's design, not something to work around page by page.

Step 4 of 5

Text on photos

Text placed over a photograph is a frequent problem. The contrast changes across the picture: readable over the dark trees, invisible over the bright sky. It also changes when the site crops the photo differently on a phone.

Put the text on a solid background, below the photo, or in the page text instead.

Step 5 of 5

Never color alone

WCAG 2.1 says color must not be the only way to convey information. The National Eye Institute says about 1 in 12 men have a color vision deficiency, and screen readers do not announce color at all.

Common slips and their fixes:

  • Required fields marked only in red. Add "(required)" to the label.
  • "Closed days are in red" on a calendar. Add the word "Closed."
  • A chart whose lines differ only by color. Label the lines directly, or use different line styles.
  • Links that differ from text only by color. Keep the underline.

A quick test: print the page in black and white, or picture it that way. If anything stops making sense, color was carrying meaning alone.

Sources

Transcript

Synthesized narration; a recorded voice replaces it later.

  1. 0:00Two rules cover most of what an editor controls: text must stand out from its background, and color cannot be the only way you say something.
  2. 0:09Contrast is the difference in lightness between text and its background.
  3. 0:13In the 2026 WebAIM Million, low contrast text was the most common failure: it appeared on 83.9 percent of the top one million home pages.
  4. 0:23WCAG 2.1 AA sets the minimums as ratios.
  5. 0:27Normal text: at least 4.5 to 1.
  6. 0:31Large text: at least 3 to 1.
  7. 0:33Icons and the edges of form fields: at least 3 to 1.
  8. 0:38You do not need to calculate anything.
  9. 0:41Free checkers, such as WebAIM's, take two colors and tell you whether they pass.
  10. 0:46Here is a light gray, 9 9 9 9 9 9, on white.
  11. 0:51About 2.8 to 1.
  12. 0:52It fails for normal text.
  13. 0:54Mid-gray text on white often lands below 4.5 to 1.
  14. 0:59A darker gray, 5 9 5 9 5 9, on the same white passes, at about 7 to 1.
  15. 1:07As an editor, check the places you choose colors: text color in the editor, banner and button colors, and images with text on them.
  16. 1:15If your site's standard colors fail, that is a fix for whoever manages the design.
  17. 1:20Text on photos changes contrast across the picture, and again when a phone crops it.
  18. 1:26Put the text on a solid background, below the photo, or in the page text instead.
  19. 1:32Never color alone.
  20. 1:33About 1 in 12 men have a color vision deficiency, and screen readers do not announce color.
  21. 1:39Add the word Required, or Closed.
  22. 1:41Label chart lines directly.
  23. 1:43Keep the underline on links.
  24. 1:46Your task.
  25. 1:47Find one place where you chose a color.
  26. 1:50Check it with a free contrast checker, and write down the ratio.
  27. 1:53Then find one place where color alone carries meaning, and add a word or symbol.

Task

Your task at your institution

Quiz

4 questions. Choose one answer for each, then check them. Each answer shows its reason.

1. What is the minimum contrast ratio WCAG 2.1 AA sets for normal-size body text?
2. A form marks required fields only by coloring their labels red. What is wrong?
3. White text sits on a photo of a bright sky in a banner. What is the risk?
4. According to the 2026 WebAIM Million, what was the most common accessibility failure on top home pages?
Show the answers
  1. B. 4.5 to 1. Normal text needs at least 4.5:1. Large text, about 18 point or 14 point bold, needs at least 3:1.
  2. B. Meaning is carried by color alone. People who cannot tell red apart miss it. Add a word or symbol, such as '(required)'.
  3. B. Contrast changes across the photo, and parts may be unreadable. Text over photos often fails contrast in places. Put the text on a solid background instead.
  4. B. Low contrast text. Low contrast text was found on 83.9 percent of the top one million home pages.