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.
| Role | Token | Before | After |
|---|---|---|---|
| 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-action | none | #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.
| Measure | Before | After | Today |
|---|---|---|---|
| Text elements measured | 5,311 | 5,311 | 7,462 |
| Below AA (4.5:1, or 3:1 for large text) | 60 | 46 | 45 |
| Pages with any text below AA | 9 | 7 | 6 |
| Above 16.5:1, the glare the change set out to cut | 1,142 | 200 | 397 |
| Over a gradient or an image, not measured | 99 | 99 | 99 |
| axe color-contrast failures | 51 | 37 | 36 |
Page by page
| Page | Before | After | Today |
|---|---|---|---|
| / | 6 | 1 | 0 |
| /library/learn/ | 0 | 0 | 0 |
| /library/palette/ | 1 | 1 | 1 |
| /library/gradient/ | 1 | 1 | 1 |
| /library/color/ | 31 | 31 | 31 |
| /library/shades/ | 1 | 1 | 1 |
| /library/harmony/ | 1 | 1 | 1 |
| /library/documentation/ | 0 | 0 | 0 |
| /library/changelog/ | 0 | 0 | 0 |
| /company/pricing/ | 14 | 10 | 10 |
| /company/about/ | 0 | 0 | 0 |
| /company/contact/ | 0 | 0 | 0 |
| /collections/ | 4 | 0 | 0 |
| /extension | 0 | 0 | 0 |
| /legal/privacy/ | 0 | 0 | 0 |
| /legal/terms/ | 0 | 0 | 0 |
| /advertise/ | 0 | 0 | 0 |
| /tool/contrast-checker/ | 0 | 0 | 0 |
| /portfolios/ | 0 | 0 | 0 |
| /search/ | 1 | 0 | 0 |
Unresolved
What is still unresolved
The text that still fails today, lowest first, and what the method could not see.
| Element | Text | Ratio | Needs |
|---|---|---|---|
/company/pricing/span.compare-dash ×10The pricing table marks a feature a plan does not have with a pale dash. | — | 1.76:1 | 4.5:1 |
/library/color/div.clib-tile-swatch ×31The color library writes each tile’s hex in near-black or white, and on mid-light colors it picks white. | #E8B241 | 1.93:1 | 4.5:1 |
/library/palette/span#plib-tab-saved-badge.anz-tab-badge.zeroA tab’s count of saved items is dimmed when it is zero. | 0 | 2.04:1 | 4.5:1 |
/library/gradient/span#glib-tab-saved-badge.anz-tab-badge.zeroA tab’s count of saved items is dimmed when it is zero. | 0 | 2.04:1 | 4.5:1 |
/library/shades/span#slib-tab-saved-badge.anz-tab-badge.zeroA tab’s count of saved items is dimmed when it is zero. | 0 | 2.04:1 | 4.5:1 |
/library/harmony/span#hlib-tab-saved-badge.anz-tab-badge.zeroA tab’s count of saved items is dimmed when it is zero. | 0 | 2.04:1 | 4.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
aafac776e2026-09-26 - After
2f7e28b572026-09-26 - Today
2d467b3732026-10-12
Where this comes from
Sources
- Understanding WCAG 2.2: Contrast (Minimum)www.w3.org
- WCAG 2.2: relative luminancewww.w3.org
- axe-core: the color-contrast ruledequeuniversity.com
Found a mistake? Write to us and we will correct it.