← All agencies

Fix: route color and text color don't contrast

Code: route_color_contrast (MobilityData validator)

What this means

routes.txt lets you set route_color (the route's background colour) and

route_text_color (the colour of the route name drawn on it). The two are too

close in brightness, so the label is hard to read against its background.

Why it matters

Apps and maps draw the route number or name in route_text_color on a swatch of

route_color. Low contrast makes that label hard to read for everyone and

unreadable for low-vision riders, which undoes the point of branding the route

at all. This is an accessibility fix as much as a cosmetic one.

How to fix it

(FFFFFF) contrasts more with the route colour.** Dark route colours take

white text; light ones take black.

contrast checker will tell you whether a colour pair passes.

fall back to readable defaults.

How long it usually takes

A few minutes: pick black or white text per route colour. A bulk edit in most

scheduling tools.