Large sign = your colours; small sign = lightness sweep
Contrast ratio vs text lightness

WCAG Text Contrast Ratio: Luminance and Pass Thresholds (2D)

Mix text and background colours and read their WCAG contrast ratio from relative luminance, with sRGB gamma linearisation, text opacity and size deciding the AA and AAA pass marks. A probe sign sweeps text lightness from black to white to show where the ratio crosses 3, 4.5 and 7, and equal-luminance red and green pairs show why hue alone does not give contrast. A Blender-built wall and signs, with numerical checks of the luminance formula built in.

Made with 🟠 Blender