What is the minimum contrast ratio WCAG requires?
At level AA, the minimum is 4.5:1 for normal text and 3:1 for large text; the stricter level AAA raises those minimums to 7:1 and 4.5:1 respectively. Most accessibility laws (such as Section 508 in the US) treat AA as the baseline requirement.
What counts as "large text" under WCAG?
Large text is defined in typographic points, not directly in pixels: 18pt (equivalent to 24px) or larger at normal weight, or 14pt (equivalent to 18.66px) or larger in bold. Below those sizes, text falls into the normal category and needs the higher contrast ratio.
Why does the same text color pass on one background but fail on another?
Because contrast is not a property of the text color alone, it is always a relationship between two luminances. A mid-gray can sit at 4.5:1 against pure white and drop below 3:1 against a light gray, so every combination needs to be recalculated, never assumed from a single color in isolation.
Is the WCAG 1.4.11 contrast rule the same as the text rule?
No: criterion 1.4.3 (which governs text) asks for 4.5:1 or 3:1 depending on size, while criterion 1.4.11 (Non-text Contrast) only requires 3:1 for form field borders, icons and other interface components that are not text, a lower floor because reading those elements is less demanding than reading a sentence.