What the Contrast Ratio Measures (and Misses)
The WCAG contrast ratio measures the relative luminance difference between two colors — essentially, how different they are in brightness. A ratio of 4.5:1 means the foreground is 4.5 times brighter or darker than the background. This is a useful measure of legibility for users without color vision deficiency. What it does not measure is distinguishability for users with color vision deficiency: two colors can have high contrast (different luminance) while being indistinguishable by hue to someone with red-green color blindness. High contrast ratio is necessary but not sufficient for color accessibility.
