Fixing a pale blue link without losing the brand
Contrast problems are easiest to see with one real pair of colours. Say a design system uses #3b82f6, a bright blue, for links on a white page. Type #3b82f6 as the text colour and #ffffff as the background, and the ratio comes out at 3.67:1. That passes large text and the 3:1 rule for icons and borders, but fails 4.5:1 for body text. A link inside a paragraph is body text, so this blue is not readable enough for everyone.
The fix does not have to be a new colour. With the goal set to body text at AA, the page suggests #1e6ff5 for the text. It is the same hue and the same saturation, a little darker, and it reaches 4.51:1. Most people would not notice the change next to the old blue, but readers with low vision or a screen in sunlight will. If the brand team wants more headroom, the AAA goal of 7:1 suggests #0950c5, a deeper blue that still reads as the same family.
The same pair can be fixed from the other side. A button with white text on a #3b82f6 background also measures 3.67:1, because the ratio does not care which colour is in front. Here the page offers two answers: make the button darker, to #1e6ff5, or make the text dark, to #1e1e1e. Both pass. Which one is right is a design choice, and having both numbers in front of you makes it a quick one. The 3:1 rule for buttons applies to the button shape against the page, which is a separate check: put the button colour and the page colour into the two fields.
Greys are where most contrast failures hide. A caption in #999999 on white looks calm and tidy, and it measures 2.84:1. The page moves it to #767676, which is the lightest grey that passes 4.5:1 on white. On a dark theme the problem runs the other way: #888888 on a navy background of #15172e already passes at 4.96:1, and the page says so instead of suggesting a change.
This checker has limits worth stating. It measures the WCAG 2 ratio between two flat colours. It cannot see a gradient or a photo behind text, where the contrast changes from one letter to the next; test the worst spot by picking its colour. It does not judge font weight or size, so you decide whether text counts as large. It does not compute APCA scores, because they are not part of the current standard. And a pass here means the colours meet the rule, not that the page is accessible: focus order, alt text and keyboard use are separate checks.