Runs in your browser · nothing uploaded

Contrast Checker for Dark Mode

Dark themes fail contrast in different ways than light ones. Secondary text gets too dim, colored accents lose punch, and pure white on pure black can feel harsh. Check each pair in your dark palette before you ship it. The checker works the same way for dark pairs.

Same rules, different traps

WCAG contrast ratios work the same in both directions, so light text on a dark background needs 4.5:1 for normal text and 3:1 for large text, exactly like dark on light. The trap is muted text. In dark themes, captions and secondary labels are often set in mid grays that look fine on a designer's bright monitor but fail. On a #121212 surface, #888888 measures about 5.28:1 and passes, while slightly darker grays drop below 4.5:1 quickly.

Elevated surfaces matter too. Cards and menus in dark mode are usually a lighter gray than the page, which lowers the contrast of any text placed on them, so test text against each surface color, not just the base background.

Avoiding glare without failing

Many dark themes avoid pure white on pure black (21:1) because some readers find the extreme contrast tiring, especially in long text. An off-white such as #E0E0E0 on #121212 still measures about 14.19:1, far above AAA. Softening the extremes is fine; just keep checking that your softened colors stay above the thresholds. Brand accent colors often need a lighter, desaturated variant in dark mode to keep 4.5:1.

Questions

Is white on black too much contrast?

WCAG sets minimums, not maximums, so 21:1 never fails. Some readers do find maximum contrast uncomfortable for long reading, which is why many dark themes use a dark gray background and off-white text. That approach keeps contrast very high while softening the glare.

Can I use my light-mode brand color in dark mode?

Sometimes, but often not. A blue that works as text on white may be too dark to read on a near-black background. Check it here. If it fails, create a lighter tint of the same hue for dark mode and use that for links, icons and text accents.

Do I need to test both themes separately?

Yes. Every text and background pair changes when the theme changes, so a pass in light mode tells you nothing about dark mode. Build a short list of your real pairs, such as body text, muted text, links and button labels, and check each one in both themes.

Get a beautiful, accessible interface designed by VYZEON.

See UI/UX design

More ways to use the Color Contrast Checker