Advancement · School Operations · Accessibility
Type the colour pairs your site or newsletter uses and what each is for. The calculator gives the WCAG ratio, says whether it meets Level AA and AAA, and offers the nearest shade of the same colour that passes.
Included with Caveat Classroom and Whole-school licenses. Or get it in the School operations toolkit, $49 for 32 items.
The worked example is a made-up district home page with five colour pairs, three of them failing. Nothing you type leaves this browser.
Loading the calculator. If nothing appears, turn on JavaScript.
Type colours as hex codes, such as #1F35C0 or 1f35c0. Three-digit codes like #fff work too.
Large text is at least 24px, or 18.66px bold (18pt or 14pt bold). Interface parts are borders of inputs, icons, focus rings and chart lines.
Advancement · School Operations$12 · included with Classroom and Whole-school licenses
Relative luminance of each colour, then lighter over darker.
Each sRGB channel is divided by 255 and linearised (values up to 0.04045 are divided by 12.92; higher values become ((v + 0.055) ÷ 1.055) to the power 2.4). Relative luminance weights them 0.2126 red, 0.7152 green and 0.0722 blue. The ratio is the lighter luminance plus 0.05 over the darker plus 0.05, from 1:1 to 21:1. WCAG says not to round, so the page cuts to two decimals.
Level AA (success criterion 1.4.3): 4.5:1 for normal text, 3:1 for large text. Level AAA (1.4.6): 7:1 and 4.5:1. Interface parts and graphics (1.4.11, Level AA): 3:1 against what is next to them. Logos and purely decorative text are exempt. Section 508 for federal agencies and the Department of Justice 2024 rule under ADA Title II for state and local government sites, including public schools, both point to WCAG Level AA.
The worked example is made up. A ratio check covers colour only; test real pages with a keyboard and a screen reader too. Your colours stay in this browser. Support: team@caveatacademic.com.