Change text and background colours, size, scale ratio, viewing distance and line length; the poster updates and the readouts say whether it is comfortably readable.
The science
Contrast. Each sRGB channel is linearised (c ≤ 0.04045 ? c/12.92 : ((c+0.055)/1.055)^2.4), relative luminance is L = 0.2126R + 0.7152G + 0.0722B and the WCAG contrast ratio is (L₁+0.05)/(L₂+0.05) with L₁ the lighter colour. WCAG AA asks 4.5:1 for body text and 3:1 for large text, AAA asks 7:1. Colours are built from hue, saturation and lightness (HSL).
Type scale. Sizes grow geometrically: headline = body·r³, subhead = body·r² (r = ratio; 1.25 is the "major third", 1.618 the golden ratio). Visual angle. x-height ≈ 0.5·font size (typical for sans-serif), 96 px per inch, so the angle is 2·atan(h / 2d) in arcminutes; larger is easier to read. Measure. 45-75 characters per line is the commonly quoted comfortable range.
Simplifications: luminance contrast only (no colour-blindness simulation, no font weight or spacing effects); the 0.5 x-height ratio and the comfort ranges are rules of thumb. The check compares the code with published WCAG values (black on white 21:1, #767676 on white 4.54:1).