Check whether text and background colors meet WCAG 2.1 contrast requirements for AA and AAA accessibility.
Normal body text looks like this. Make sure it is easy to read.
WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold). AAA needs 7:1 and 4.5:1.
It compares the relative luminance of the two colors using the WCAG formula (L1 + 0.05) / (L2 + 0.05).