Opera on Intergalactic Cowboy
#816575 on #222266
Body text at this size
And the smaller size most interfaces actually use for paragraphs — the size that decides whether a pair is usable.
Caption text, which almost nothing passes.
WCAG 2.1
2.72:1
Fails AA
Not AAA (7:1). Swapping the two colours gives the same number — the ratio does not know which is the text.
APCA
Lc -21.7
Clears Lc 15 — disabled or purely decorative text, which is not meant to be read.
Light text on a darker ground — the negative sign is the polarity.
Colour difference
ΔE00 30.2
different colours
Above 10 — related only in the sense that both are colours.
What the text colour has to become
#a7899a is the nearest colour of the same hue that passes AA on #222266, at 4.50:1. Only the lightness moved — which is the point: your colour stays recognisably your colour.
And to someone missing a cone
protanopia
Ratio 2.59:1, ΔE00 27.1.
deuteranopia
Ratio 2.79:1, ΔE00 30.4.
tritanopia
Ratio 2.84:1, ΔE00 60.7.
The weakest of the three is protanopia, where the two are ΔE00 27.1 apart against 30.2 for a trichromat — still clearly two colours.
Both colours have pages of their own: Opera ·Intergalactic Cowboy · the same pair the other way round ·all pairs