Contrast ratios that pass and still fail

Jonah Whitfield

Type Designer · Leeds

  • Sep 27, 2025
  • 2 min read
  • 12
Contrast ratios that pass and still fail

Where WCAG maths and real readability part ways, and what we check instead. Colour and type decisions look subjective until you have to maintain them across three themes and two platforms.

Dark surfaces are their own palette

Our second typeface was chosen for its x-height and rhythm, not for contrast with the first. The pairing reads as one voice, which matters more in a product than on a poster.

Plate 1 from the "Contrast ratios that pass and still fail" galleryPlate 2 from the "Contrast ratios that pass and still fail" galleryPlate 3 from the "Contrast ratios that pass and still fail" galleryPlate 4 from the "Contrast ratios that pass and still fail" galleryPlate 5 from the "Contrast ratios that pass and still fail" galleryPlate 6 from the "Contrast ratios that pass and still fail" galleryPlate 7 from the "Contrast ratios that pass and still fail" galleryPlate 8 from the "Contrast ratios that pass and still fail" galleryPlate 9 from the "Contrast ratios that pass and still fail" galleryPlate 10 from the "Contrast ratios that pass and still fail" galleryPlate 11 from the "Contrast ratios that pass and still fail" galleryPlate 12 from the "Contrast ratios that pass and still fail" gallery

Pairing for rhythm, not contrast

A colour pair can pass WCAG contrast and still be hard to read, especially with thin weights at small sizes. We now check real text at real sizes on real devices alongside the ratio.

  1. Test contrast with real text, not swatches
  2. Build ramps in a perceptual colour space
  3. Design dark surfaces separately
  4. Match x-heights when pairing typefaces

Where the maths lies

Dark mode got its own palette built from surfaces and elevation. Inverting the light theme produced glowing borders and muddy text; designing it separately took a week and saved months.

Generating ramps in OKLCH gave us steps that finally looked evenly spaced. The brand magenta survived the move almost untouched, while the greys stopped drifting blue at the dark end.

The short version: make the decision visible, make it reversible, and write down why. The rest is mostly patience.


Found this useful?

Jonah Whitfield

About the author

Jonah Whitfield

Type Designer · Leeds

Jonah draws typefaces for screens and sets them for the studio. He has opinions about numerals, line length, and the colour of grey text.

Related dispatches

All posts

12 comments

Leave a comment

Already have an account? Log in

Your email is never shown.

  • Kwame Mensah

    Oct 3, 2025

    This matches our experience almost exactly. The renaming pass was painful, but nobody wants to go back.

    Marcus Chen

    Oct 5, 2025

    We handled that by assigning an owner per component, which mostly worked.

  • Hannah Brooks

    Oct 5, 2025

    Would love a follow-up on how the team felt about the change after six months.

    Zara Ahmed

    Oct 7, 2025

    Same here. The second attempt went much better once we wrote the rules down first.

  • Diego Morales

    Author's pick Oct 5, 2025

    The quote near the end is going on a sticky note above my desk.

  • Chiara Bianchi

    Oct 9, 2025

    The quote near the end is going on a sticky note above my desk.

    Jonah Whitfield

    Author Oct 9, 2025

    Good catch. We tested on a mid-range phone, but I will add a low-end device to the next round.

  • Rafael Costa

    Oct 10, 2025

    This matches our experience almost exactly. The renaming pass was painful, but nobody wants to go back.

  • Oliver Grant

    Oct 13, 2025

    This matches our experience almost exactly. The renaming pass was painful, but nobody wants to go back.

  • Oliver Grant

    Author's pick Oct 15, 2025

    Would love a follow-up on how the team felt about the change after six months.

  • Jules Martin

    Oct 16, 2025

    Did you measure anything before and after? I would love to show numbers to our leadership.

    Jonah Whitfield

    Author Oct 19, 2025

    Glad it helped. The list is adapted from a checklist we keep in the studio wiki.

Previous

A teardown of our own onboarding flow

Next

Shipping a design token pipeline in an afternoon