Case Study 2 — Can Team Colours Be Made Accessible? A Four-Season Audit

Setup

Every chart in this book uses team colours, and so does almost every F1 chart anyone publishes: broadcast graphics, team social posts, fan dashboards. Section 25.2 showed that OpenF1's 2026 team colours include a pair that is effectively one colour (Audi and Ferrari, ΔE 1.7) and five colours that fail 3:1 contrast on a white page.

Tom, who designs the Formula Student team's data dashboards, proposes the obvious fix. "Keep the hues, so the teams stay recognisable. Just darken any colour that fails contrast until it passes. Problem solved."

Aisha is sceptical but agrees to test it properly: four seasons, every team, every pair, three kinds of vision, the published colours against the darkened ones. This is a multi-season analytics case. The data are small (forty-one team-season colours), but the question is general: does a lightness fix solve both accessibility problems at once?

The data

For each season, code/case_study_02.py takes the team colours OpenF1 published for that season's Japanese GP. Using the same round keeps the four snapshots comparable. (We did not check whether any team's OpenF1 colour changed during a season; discussion question 1 asks how you would.) Then:

  • viz.palette_report(colors) computes each colour's WCAG contrast against white, and for every pair the OKLab ΔE under normal vision, simulated deuteranopia and simulated protanopia (Machado, Oliveira and Fernandes 2009, severity 1.0). The verdict is "collides" when the worst case is below 6, and "needs a second cue" when the worst case is 6–8 or normal vision is below 15.
  • viz.darken_to_contrast(hex) lowers each failing colour's OKLab lightness in small steps, keeping its hue angle (and its chroma where the sRGB gamut allows), until the colour reaches 3:1 on white. Colours that already pass are left alone.
def darken_to_contrast(h, surface="#ffffff", target=3.0, step=0.005):
    """Same hue, lower OKLab lightness, until `target` contrast against `surface`."""
    if contrast_ratio(h, surface) >= target:
        return h.upper()
    L, a, b = _oklab(_to_linear(hex_to_rgb(h)))
    while L > 0.05:
        L -= step
        lin = _oklab_to_linear((L, a, b))
        if (lin < 0).any() or (lin > 1).any():     # out of gamut: shrink chroma a little
            a, b = a * 0.98, b * 0.98
            continue
        out = _rgb_to_hex(_to_srgb(lin))
        if contrast_ratio(out, surface) >= target:
            return out.upper()

Analysis

Step 1: how big is the published problem?

 year         version  teams  below_3to1  collides  needs_2nd_cue  median_contrast           worst_pair
 2023       published     10           4         4              8             3.46  haas-mercedes (1.0)
 2024       published     10           6         0              9             2.73 mclaren-sauber (7.1)
 2025       published     10           6         0              9             2.73 mclaren-sauber (7.1)
 2026       published     11           5         4              5             3.19   audi-ferrari (0.9)

Every season has four to six colours below 3:1, so half the grid fails a basic legibility test on white paper. Collisions (worst-case ΔE below 6) come and go with team rebrands. In 2023, Haas's grey #B6BABD and Mercedes's mint #6CD3BF were 9.9 apart in normal vision but 1.0 apart under deuteranopia: they share a lightness, and deuteranopia removes the hue difference between them. 2024 and 2025 had no collisions, though nine pairs needed a second cue. In 2026 four pairs collide, led by Audi and Ferrari.

Step 2: darken the failures and audit again

 year         version  teams  below_3to1  collides  needs_2nd_cue  median_contrast           worst_pair
 2023 darkened to 3:1     10           0         8             13             3.46  haas-mercedes (1.4)
 2024 darkened to 3:1     10           0         6             12             3.04  haas-mercedes (1.8)
 2025 darkened to 3:1     10           0         6             12             3.04  mercedes-haas (1.8)
 2026 darkened to 3:1     11           0         9              9             3.19   audi-ferrari (0.9)

Season summary: team colours below 3:1, colliding pairs and pairs needing a second cue, published versus darkened

📊 Figure (described): Three dot-plot panels with seasons 2023–2026 in rows. Black dots are the published colours, open blue squares the darkened ones. Left, colours below 3:1: published 4, 6, 6, 5; darkened 0 in every season. Middle, colliding pairs: published 4, 0, 0, 4; darkened 8, 6, 6, 9. Right, pairs needing a second cue: published 8, 9, 9, 5; darkened 13, 12, 12, 9. Every darkened square in the middle and right panels sits to the right of its published dot.

Tom's fix works perfectly on the problem it targets: zero colours below 3:1 in every season. It makes the other problem worse in every season. Collisions double in 2023 (4 to 8) and 2026 (4 to 9), and they appear from nothing in 2024 and 2025 (0 to 6).

🔍 Why this works (against us): On a white background, contrast depends almost entirely on lightness, so "reach 3:1" means "become darker than a certain lightness". The failing colours start at very different lightnesses (Mercedes 2025 at OKLab L ≈ 0.87, McLaren at 0.73, Racing Bulls at 0.68), and darkening pulls all of them down to about the same lightness, just dark enough to pass. Lightness was the dimension that kept several pairs apart for colour-blind readers. Compress it, and colours that differed mainly in lightness, such as Mercedes's mint and Haas's grey, collapse onto each other under deuteranopia.

Step 3: what happened to 2026?

2026 team colours: published, darkened to 3:1, and the darkened set under simulated deuteranopia, with contrast before and after

📊 Figure (described): Eleven teams in rows, ordered by published contrast. Columns: published colour, darkened colour, and the darkened colour under simulated deuteranopia, with contrast before and after. Mercedes moves from 1.84:1 to 3.11:1 and becomes a darker teal. Haas, Racing Bulls, McLaren and Alpine move a little. In the deuteranopia column, darkened Mercedes, Haas and Cadillac are three near-identical mid-greys, and Audi and Ferrari remain one olive.

2026 darkened: closest pairs
       a            b  dE_normal  dE_deutan  dE_protan  dE_worst  verdict
    audi      ferrari        1.7        1.4        0.9       0.9 collides
cadillac     mercedes       12.0        1.0        3.9       1.0 collides
cadillac         haas        1.3        1.2        1.4       1.2 collides
mercedes         haas       12.0        2.2        3.3       2.2 collides
  alpine           rb        7.2        3.6        4.3       3.6 collides
mercedes aston_martin        4.3        4.1        4.6       4.1 collides
2026 darkened hexes: {'mclaren': '#EA7208', 'alpine': '#089ADE', 'mercedes': '#05A58B', 'rb': '#6590F6', 'haas': '#919497'}

Five colours changed, by a median of ΔE 2.5. The biggest move was Mercedes, by ΔE 14.3, enough that the darkened teal reads as a different colour from the one fans know. The damage is concentrated in a cluster. Darkened Mercedes (#05A58B), Haas (#919497) and Cadillac (#909090, unchanged because it already passed at 3.19:1) now sit at almost the same lightness. Haas and Cadillac are 1.3 apart even for full colour vision, and Mercedes and Aston Martin are 4.3 apart. Before darkening, Mercedes's mint was the lightest colour on the grid, which made it illegible on white but unmistakable next to anything else.

In the earlier seasons the pattern is the same, with Mercedes and Haas the collapsing pair (1.8 under deuteranopia in 2024–25, after darkening).

Step 4: the check that actually matters, chart by chart

A whole-grid audit answers "is this palette safe for any chart?". Most charts show three to six cars, so the practical check is narrower. The chapter's Project Checkpoint runs it for a five-driver chart of the 2025 Japanese GP (Verstappen, Norris, Piastri, Leclerc, Russell):

name     hex  contrast  contrast_ok
 VER #3671C6      4.85         True
 NOR #FF8000      2.52        False
 PIA #FF8000      2.52        False
 LEC #E80020      4.72         True
 RUS #27F4D2      1.40        False
  a   b  dE_normal  dE_worst  verdict
NOR PIA        0.0       0.0 collides
NOR LEC       18.3      14.5       ok
PIA LEC       18.3      14.5       ok
NOR RUS       33.1      19.7       ok

Of the ten pairs, only one collides, and it is the one every F1 analyst already expects: two team-mates in one colour. The toolkit's line-style rule handles that. The live problem in this chart is contrast: Russell's Mercedes mint at 1.40:1 and the McLaren orange at 2.52:1. Darkening those two colours only (#0AA78F and #E87507) brings them to 3:1 and creates no new collision among these five, because the colours that the darkened mint would collapse onto, Haas and Cadillac grey, are not in the chart. Rerunning palette_report on the adjusted colours confirms it: the closest pair becomes Norris–Leclerc at ΔE 9.4 under deuteranopia (15.1 in normal vision), still above 8, and every colour now reaches 3:1. The chart-level fix succeeds where the grid-level fix fails.

What it means (and doesn't)

What the audit shows:

  1. Half the grid's published colours fail a basic contrast test on white, in every season from 2023 to 2026.
  2. Some pairs are unusable as identity colours however they are adjusted. Audi and Ferrari in 2026 are 1.7 apart for everyone, so no lightness tweak that keeps them recognisable will separate them.
  3. A lightness-only fix trades one accessibility failure for another. You cannot solve contrast and separability on one dimension, because they compete for it.

So what should a chart do? The answer from 25.2 stands, and it is cheaper than any palette redesign:

  • On dark backgrounds, most published team colours pass contrast easily (Mercedes's 2025 mint is 12.41:1 on #1A1A19), so the contrast problem largely disappears. The darkening is only needed on white.
  • On white, darken the failing colours for lines and marks, and accept that some pairs will then collide.
  • Never rely on colour alone. Dashes for team-mates, markers for teams with shared or collapsed hues, and direct labels make collisions harmless. Figure 25.4's "after" version is legible under deuteranopia even though Ferrari and Audi are the same red.
  • Run viz.palette_report on the colours actually in the chart, not on the whole grid. A five-driver chart has ten pairs, and most of the grid's collisions will not be among them.

What the audit does not show:

  • How real readers perform. The CVD simulation is a model, and ΔE thresholds are working rules. A reading-accuracy study with colour-blind participants would be the real test (exercise E3).
  • Anything about the teams' own graphics. Teams use liveries, logos and other cues that a chart line does not have. The audit is about charts, not about teams' design choices.
  • Brand constraints. OpenF1's hex codes are a data provider's approximation of team colours, not the teams' official brand specifications. A team's own chart colour policy may differ.

Discussion questions

  1. The audit uses each season's Japanese GP colours. What could go wrong if a team's OpenF1 colour changed during a season, and how would you check for it?
  2. Mercedes's darkened teal moved by ΔE 14.3. Is that "still Mercedes"? How would you decide, and who should decide?
  3. Darkening fixed contrast and broke separation. Propose a second transformation (hue shift, chroma change, outlines) and predict what it does to each of the two counts before you test it.
  4. The chapter's thresholds are ΔE 6 / 8 / 15 and contrast 3:1. If you raised the collision threshold to 8, how would the 2026 published verdicts change? (Read code/output/team_colour_pairs_2026.csv.)
  5. For a broadcast graphic on a dark background, which half of this audit matters, and which can be ignored?

Your turn

Repeat the audit for a dark background (surface="#1A1A19"). Write lighten_to_contrast (the mirror of darken_to_contrast), and run the four seasons again. Report the same table (below-3:1 count, collisions, second-cue pairs) for published and lightened colours. Then answer, with numbers:

  • How many published colours fail on dark? (Expect far fewer than on white. Red Bull's 2025 #3671C6 is 3.59:1 on #1A1A19, close to the line.)
  • Does lightening the failures compress the lightness range the way darkening did, and do collisions rise again?
  • Which background would you recommend for a 22-car race trace, and what second cues would you still require?

Expected output: one CSV with eight rows (four seasons × two versions), the same two figures for the dark background, and a 150-word recommendation.