How to check the contrast ratio of text in Chrome DevTools
To see whether text has enough contrast, inspect it in Chrome DevTools: the tooltip gives its ratio, and the color picker shows whether it passes AA and AAA. On a solid background, that number is right. On a gradient or a photo, overlay or not, it goes missing or comes out wrong. For the real ratio, use the eyedropper on the background behind the letters, then fix the color.