InstructionalEngineer

eLearning Color Contrast – Getting It Right for Every Learner

By Instructional EngineerAccessibility and Mobile5 min read

eLearning Color Contrast – Getting It Right for Every Learner - 3D Wireframe Animation

Light gray text looks elegant in a design comp, and so does white text over a bright photo or a cheerful orange button. Then the course goes live, and people squint, lean in or give up, whether because of low vision, color blindness or simply a phone screen in direct sunlight. Poor color contrast in eLearning is one of the most common accessibility failures, and also one of the easiest to correct. How much contrast does your course need, and how do you check it quickly?

Under the Web Content Accessibility Guidelines (WCAG) at Level AA, normal text needs a contrast ratio of at least 4.5:1 against its background, large text needs at least 3:1, and buttons, icons and other interface parts need at least 3:1 against what's around them. Large text means roughly 18 point regular or 14 point bold. You also can't rely on color alone to convey meaning, such as marking correct answers only in green. Checking is straightforward: enter your text and background colors into a contrast checker and adjust them until they pass. Correct your template and palette once, and every course built from them starts out accessible.

What Does a Contrast Ratio Actually Measure?

A contrast ratio compares the relative brightness of two colors, on a scale from 1:1 (no difference, like white on white) to 21:1 (black on white). WCAG uses a formula based on how bright each color appears to the human eye, so two colors that look different in hue can still have poor contrast if their brightness is similar.

That's why red on green or blue on purple can be difficult to read even though the colors seem very different. Brightness is what makes text readable, particularly for people with low vision or color vision deficiency.

The exact formula and thresholds are defined in the WCAG 2.1 Recommendation from the World Wide Web Consortium (W3C), under the success criteria for contrast and non-text contrast.

Who Struggles With Low Contrast?

More people are affected than most design teams expect. Learners with low vision need strong contrast to read at all, and people with color vision deficiency, which is common and especially so among men, may not perceive the difference between two hues that look obvious to you. Contrast sensitivity also tends to decline with age, so an experienced workforce notices weak contrast more than a young design team testing on bright, new monitors.

Then there's the environment. A technician reading a phone outdoors, a nurse on a dimmed tablet during a night shift and a trainee watching an old projector in a bright room all lose contrast to their surroundings. A course that barely passes in the office may fail on the job, so building a small margin above the minimum ratio is a sensible habit.

Which Contrast Ratios Does WCAG Require?

ElementLevel AALevel AAA
Normal text4.5:17:1
Large text (about 18pt, or 14pt bold)3:14.5:1
Buttons, form borders, icons and focus indicators3:1Not separately defined
Logos and purely decorative textNo requirementNo requirement

Most organizations aim for AA. Disabled controls are also exempt, but be careful with that exception: if a button merely looks disabled because of a pale color but still functions, it isn't exempt, and learners may not realize they can select it.

How Close Are Common Colors to Passing?

Some colors fail by a tiny margin, and the difference is invisible to most designers. The chart below shows the calculated contrast ratios of common color pairs using the WCAG formula. Notice that mid-gray #767676 on white just passes 4.5:1, while #777777, one step lighter, just fails.

Contrast ratios of common color pairs

Text color on background, compared with the 4.5:1 AA threshold for normal text

Black on white21.00:1Dark gray #333333 on white12.63:1Gray #595959 on white7.00:1White on blue #0066CC5.57:1White on green #0080005.14:1Gray #767676 on white4.54:1Gray #777777 on white4.48:1White on red #FF00004.00:1Gray #999999 on white2.85:1White on orange #FFA5001.97:1AA 4.5:1Black on white21.00:1Dark gray #333333 on white12.63:1Gray #595959 on white7.00:1White on blue #0066CC5.57:1White on green #0080005.14:1Gray #767676 on white4.54:1Gray #777777 on white4.48:1White on red #FF00004.00:1Gray #999999 on white2.85:1White on orange #FFA5001.97:1AA 4.5:1

Calculated with the WCAG 2 relative luminance and contrast ratio formula published by the W3C; values rounded to two decimals.

View the data
Contrast ratio
Black on white21.00:1
Dark gray #333333 on white12.63:1
Gray #595959 on white7.00:1
White on blue #0066CC5.57:1
White on green #0080005.14:1
Gray #767676 on white4.54:1
Gray #777777 on white4.48:1
White on red #FF00004.00:1
Gray #999999 on white2.85:1
White on orange #FFA5001.97:1

White on pure red and white on orange deserve particular attention. Both are popular for warning buttons and calls to action, and both fail for normal-size text, although darker shades of the same hues usually pass and still read as red and orange.

Where Do eLearning Courses Usually Fail Contrast?

The same problems appear in course after course:

How Do You Check Color Contrast in eLearning?

Use the checker below. Enter your text color and background color as hex codes, and it displays the ratio and whether it passes AA and AAA for normal and large text.

Interactive checker

Check a color pair against WCAG contrast

Sample text for your course screen
4.6:1Contrast ratio

Uses the WCAG 2 relative luminance formula. AA needs 4.5:1 for normal text and 3:1 for large text (about 18pt, or 14pt bold) and for interface parts. AAA needs 7:1 and 4.5:1. More free tools.

For a second opinion, or to check colors pulled from a screenshot, WebAIM's contrast checker is a free, widely used option.

A simple checking routine looks like this:

  1. List every text and background color pair in your template, including buttons, links, captions and feedback.
  2. Check each pair and record the ratio.
  3. For text over images, check the lightest part of the image behind the text.
  4. Check icons, input borders and focus outlines against their backgrounds at 3:1.
  5. Grayscale test: view a screen in grayscale. If meaning disappears, you're relying on color alone.

How Do You Fix Contrast Without Ruining the Design?

You rarely need to abandon your brand, because small adjustments make a significant difference.

eLearning Color Contrast – Getting It Right for Every Learner - 3D Cutaway Animation

Contrast matters even more for learners on phones and tablets, where glare and small screens make weak contrast worse. If your audience is mobile, this guide to designing mobile learning for the phone first covers the other layout choices that help.

Color Contrast in eLearning Comes Down to a Few Numbers

The rules fit on a sticky note: 4.5:1 for normal text, 3:1 for large text and interface parts, and never color alone. Most failures come from light grays, bright brand colors and text over photos, and most corrections take only minutes.

Check your current template today. Run every color pair through the checker, adjust the combinations that fail and save the passing palette for your team, because that single afternoon will make every future course easier to read for every learner.

← All articles