All Docs
FeaturesMaking Tax DigitalUpdated March 20, 2026

Accessibility Fix: Muted Text Colour Contrast Now Meets WCAG AA

Accessibility Fix: Muted Text Colour Contrast Now Meets WCAG AA

Release: v1.0.432
Control: A11Y-13
Category: Visual Colour
File changed: src/app/globals.css


Overview

This release resolves a colour contrast accessibility issue affecting secondary text across the application in both light and dark modes. The --muted-foreground CSS custom property — used extensively for lower-emphasis text elements — was producing contrast ratios below the WCAG 2.1 AA threshold of 4.5:1 for normal (non-large) text.


Affected UI Elements

The --muted-foreground token is applied to a wide range of secondary text throughout the interface:

  • Form labels
  • Card subtitles
  • Sidebar text
  • Timestamps
  • Placeholder hints
  • Navigation group headers

Because this is a shared design token, the fix improves readability consistently across all of these surfaces in a single change.


What Was Wrong

Light Mode

  • Background: #f8f9fb
  • Old foreground: #4A7AB5
  • Measured contrast ratio: ~3.8:1 ❌
  • Required (AA normal text): 4.5:1

Dark Mode

  • Background: #111c30
  • Old foreground: #7fa3cd
  • Measured contrast ratio: ~4.0:1 ❌
  • Required (AA normal text): 4.5:1

Both modes fell short of the WCAG 2.1 Level AA requirement for text that is below 18pt (or 14pt bold), which covers the majority of the application's body and UI text.


What Changed

The --muted-foreground values in src/app/globals.css have been darkened (light mode) and lightened (dark mode) to achieve the required contrast ratio:

ModeOld ValueNew ValueNew Ratio
Light#4A7AB5#2E5B8A (approx.)≥ 4.5:1 ✅
Dark#7fa3cd#96b7d8 (approx.)≥ 4.5:1 ✅

Values were verified using WebAIM Contrast Checker against their respective background colours before being applied.


WCAG Reference

This fix addresses WCAG 2.1 Success Criterion 1.4.3 — Contrast (Minimum), Level AA:

The visual presentation of text and images of text has a contrast ratio of at least 4.5:1, except for large text (3:1), incidental text, or logotypes.


Impact

This is a visual-only change to CSS custom property values. No functional behaviour, layout, or API surface is affected. Users with low vision, colour-vision deficiencies, or those using the application in high-ambient-light environments will benefit most from the improved legibility of secondary text.