A faint form border can make an input field almost impossible to find, especially for someone with low vision or in bright light. Contrast ratio gives you a way to check whether foreground content stands out from its background instead of relying on how it looks to you. section 3.1.3 section 3.1.1
The WCAG contrast ratio compares the relative luminance of two colors. It runs from 1:1, where there is no contrast, to 21:1, as with black on white. WCAG uses the ratio to set minimum thresholds for different kinds of content; the goal is sufficient contrast, not the highest possible number. section 3.1.1 section 3.1.2
Check the parts of an interface people need to read or recognize:
- Normal text needs at least 4.5:1; large text needs at least 3:1. These thresholds also apply to text in controls and images. section 3.5 section 3.1.2
- UI components and meaningful graphics need at least 3:1 against their surrounding area. Check borders, icons, selected states, focus indicators, and chart lines—not just text. section 3.1.3 section 3.5
- Keep disabled text readable even though it is exempt from the text thresholds. For body text, consider exceeding the minimum, particularly when the font is thin. section 3.1.2
A field that disappears
A sign-up form may appear complete while its faint input borders go unnoticed. Open the page in a browser, then use DevTools to emulate a vision deficiency and inspect whether the fields remain identifiable. If a border disappears, check its contrast against the background rather than assuming the field is obvious. section 3.1.3
Figure 3.2 Example of contrast calculation using both WCAG contrast ratios and APCA. The WCAG contrast ratio (4.5:1) is sufficient, but according to APCA, the Lc score (71.6) is insufficient, as the contrast for body text should be at least 75.
Compare the same color pairing under two measures: its 4.5:1 WCAG ratio is sufficient, while its APCA score of Lc 71.6 falls below the illustrated body-text target of 75. Use APCA for supplementary design insight; WCAG ratios remain the conformance baseline where WCAG governs. section 3.1.1



