Most accessibility advice about colour stops at one number: the contrast ratio between text and its background. That number is worth knowing, and the formula is not hard. It answers a narrower question than people think: whether a particular pair of colours can be told apart when the screen is behaving normally. It does not tell you what happens to a diagram, a badge or a chart when the whole display flips.
What the contrast ratio actually measures
The formula is short:
L = 0.2126 R + 0.7152 G + 0.0722 B
ratio = (L1 + 0.05) / (L2 + 0.05)
And the same four pairs before and after inversion look like this:
| Original pair | Ratio | Inverted pair | Ratio |
|---|---|---|---|
| #767676 on #ffffff | 4.54 | #898989 on #000000 | 6.00 |
| #949494 on #ffffff | 3.03 | #6b6b6b on #000000 | 3.94 |
| #0057b8 on #ffffff | 6.87 | #ffa847 on #000000 | 10.94 |
| #22a06b on #ffffff | 3.33 | #dd5f94 on #000000 | 6.14 |
The ratio comes from relative luminance, a weighted sum of the red, green and blue channels after a gamma correction. Mid grey on white is 4.54:1, which clears AA for body text. A lighter grey is 3.03:1, which clears AA for large text only. A blue link is 6.87:1. Invert both colours in each pair and recompute, and the numbers move in ways that are hard to predict by eye.
A green that sits at 3.33:1 unmodified lands at 6.14:1 inverted, while a light grey goes from 3.03 to 3.94. The same transformation helps one pairing a lot and another barely at all.
Every ratio is still a two-colour statement. A status badge is often not two colours. It is a fill, a border, an icon and a label, and the only thing separating the success state from the error state may be that one is green and one is red.
Where diagrams and screenshots break
Picture a screenshot of a dashboard with three chips across the top: green, amber, red, each with the same shape and the same short word. Invert the display, which many low-vision readers do deliberately, and you get magenta, blue and cyan. The association people learned is gone, and if the label is small the chip is now three coloured rectangles.
Under a colour-vision deficiency the problem arrives earlier: deuteranopia collapses a green and red pair toward the same yellow-brown. A chart legend that relies on those two hues for its series becomes one series.
Neither failure is visible in a contrast checker, because in both cases every individual pair of colours still passes.
A ten-second test you can run on any image
The test does not need a design file or a screenshot tool. Open the image in a page that shows the original and the inverted version side by side. Scan for anything whose meaning lives in hue alone: status chips, legend swatches, heat-map cells. For each one, ask what the image says after inversion. If the answer is two coloured rectangles, the image is carrying meaning in one channel only. Write down the pairs you found; that list is the actual accessibility backlog.
Step one is the step people skip because an image editor's invert menu lives three levels deep. A page that does the flip in the browser, with no upload and no account, is here: negative image converter.
What to do with the findings
Add a second channel to any status indicator: a shape, a glyph, or the first letter of the state. Never let a chart series be distinguished by hue alone. For printed material, check the inverted view before sending to press. Where an image is decorative, mark it decorative and stop worrying.
Why this belongs next to the contrast audit
Contrast ratios are a floor, not a ceiling. They are the cheapest check to automate and the easiest to report, which is why they crowd out the visual checks that need a person to look at something. An inverted preview is the cheapest way to get back to looking.