Case study

Re-tuning a light mode This site’s own redesign, measured before and after

On 26 September 2026 this site changed its light mode. This study renders twenty of its pages from the commit before the change, from the change itself, and from today, and measures every line of text against the background it sits on.

Changed
26 September 2026
Pages measured
20
Text below AA
60 before, 46 after
Measured
15 October 2026

Before

The design it started from

The light mode before the change, as its tokens set it. Each ratio is against that mode’s own page background.

The light tokens before and after, with each one’s contrast on the page background
RoleTokenBeforeAfter
Page background--aa2-surface#FFFCF7#F5F0E6
Cards--aa2-card#FFFFFF 1.02:1#FCF9F2 1.08:1
Wells: code, rails, table heads--aa2-subtle#FAFAF9 1.02:1#ECE5D7 1.10:1
Separators--aa2-line#E5E7EB 1.20:1#DAD1BF 1.33:1
Edges of controls--aa2-line-control#6D685F 5.40:1#7A7263 4.18:1
Headings--aa2-ink-strong#000000 20.51:1#1C1A16 15.29:1
Body text--aa2-ink#1D2A3E 14.12:1#2F2B24 12.39:1
Labels--aa2-ink-2#4B5563 7.38:1#524C42 7.48:1
Captions--aa2-ink-3#6B7280 4.72:1#6A6357 5.23:1
Gold text--aa2-gold-ink#8A6D16 4.79:1#765A0B 5.71:1
Primary buttons--aa2-actionnone#1D2A3E 12.72:1
  • Three whites that were barely different. The page, the cards and the wells were 1.02:1 and 1.02:1 apart, so nothing rose off the page and the separators did all the work.

  • Headings past readable, into glare. Pure black headings measured 20.51:1 on the page. Contrast that high is not a failure, but on large areas of text it is harsh.

  • Text that only passed on white. Captions at 4.72:1 and text dimmed with opacity, at 0.55 and 0.6, passed on the near-white page with little room. On a warmer page they would have fallen below AA, so they could not stay as they were.

The change

What changed

  • Three surfaces with jobs. A warm paper for the page, a lighter sheet for cards (the only white, always with a hairline), and a darker well for code, rails and table heads.

  • A warm ink ladder. Four inks from headings to captions, with the lightest still at 5.23:1, so nothing sits near the 4.5:1 edge.

  • A navy for filled buttons. Primary buttons had used the body ink as their fill; moving the ink to warm charcoal would have turned them brown, so they got a navy of their own.

  • Dimmed text raised. Opacity of 0.55 and 0.6 went to between 0.72 and 0.85, and a button label that was white on the bright gold became dark ink.

  • Both color decks at once. The site has an older set of color variables beside the newer one; both moved together, or pages built on the older one would have kept the old light mode.

Result

What it measured

The same twenty pages, in light mode, at three points. Today includes everything built since, so it is not the change alone.

What was measured before the change, after it, and today
MeasureBeforeAfterToday
Text elements measured5,3115,3117,462
Below AA (4.5:1, or 3:1 for large text)604645
Pages with any text below AA976
Above 16.5:1, the glare the change set out to cut1,142200397
Over a gradient or an image, not measured999999
axe color-contrast failures513736

Page by page

Unresolved

What is still unresolved

The text that still fails today, lowest first, and what the method could not see.

Text that is below AA today
ElementTextRatioNeeds
/company/pricing/
span.compare-dash ×10

The pricing table marks a feature a plan does not have with a pale dash.

—1.76:14.5:1
/library/color/
div.clib-tile-swatch ×31

The color library writes each tile’s hex in near-black or white, and on mid-light colors it picks white.

#E8B2411.93:14.5:1
/library/palette/
span#plib-tab-saved-badge.anz-tab-badge.zero

A tab’s count of saved items is dimmed when it is zero.

02.04:14.5:1
/library/gradient/
span#glib-tab-saved-badge.anz-tab-badge.zero

A tab’s count of saved items is dimmed when it is zero.

02.04:14.5:1
/library/shades/
span#slib-tab-saved-badge.anz-tab-badge.zero

A tab’s count of saved items is dimmed when it is zero.

02.04:14.5:1
/library/harmony/
span#hlib-tab-saved-badge.anz-tab-badge.zero

A tab’s count of saved items is dimmed when it is zero.

02.04:14.5:1
  • Text over gradients and images has no single background color, so 99 elements today were not measured. A pixel check would be needed for them.

  • Light mode only, at one width. Dark mode was not part of the change. Every page was measured at 1280 pixels wide; a phone layout can put text on other backgrounds.

  • Twenty pages, not the site. The tools’ workbenches keep a dark stage in both themes and were not re-tuned; pages built since the change were not in the before and after.

  • What a person sees. A ratio does not say whether a page is comfortable to read for long. That needs people, which this study did not include.

Method

How it was measured

  • Each state of the site was checked out from its commit and served by its own server; today is the working tree. Requests to other sites were blocked, and ad slots were left out.

  • On every page, every visible element holding text was measured: its color over its background, composited through every translucent layer, against 4.5:1, or 3:1 for text at least 24 pixels, or 18.66 pixels and bold. Disabled controls are exempt, as WCAG allows.

  • axe 4.12.1 ran its color-contrast rule on the same pages, as a second opinion.

  • This study is about this site’s own code. It names no other project, so no one else’s permission was needed.

To measure it again

node scripts/case-study/measure.mjs
node scripts/case-study/build-page.mjs

The commits

  • Before aafac776e 2026-09-26
  • After 2f7e28b57 2026-09-26
  • Today 2d467b373 2026-10-12

Where this comes from

Sources

Found a mistake? Write to us and we will correct it.