WebAIM Contrast Checker: test text colours in seconds
A free, browser-based tool from WebAIM: enter a text colour and a background colour and it shows the contrast ratio and whether it passes WCAG AA and AAA for normal and large text. Quick reference (WCAG 2.x): Normal text AA 4.5:1 · AAA 7:1 Large text AA 3:1 · AAA 4.5:1 UI components and graphics 3:1 Check your palette before you build with it, especially secondary and placeholder text.
webaim.org