Check Text Contrast With Ferkesh Tools
Text contrast depends on the foreground and background actually rendered. Verify colors from a representative page with the Color Contrast Checker, then review interface states that can change the pair. One headline over a solid panel does not cover every component.
Measure the real pair
Use browser DevTools to inspect the text and its nearest opaque background. For a simple example, #1F2937 on #FFFFFF has strong contrast. A semi-transparent overlay or gradient changes the effective background. Sample the weakest relevant point or use an approved compositing method first, because the checker accepts two opaque sRGB colors.
Apply the appropriate threshold
For WCAG 2.2 SC 1.4.3, ordinary text generally needs at least 4.5:1 at Level AA and large text at least 3:1. Use the criterion's size and weight definition, including its exceptions. Compare against the threshold without rounding up a borderline result.
Test states as pairs
Repeat for links, labels, errors and visible placeholder text in both light and dark appearances. Document foreground, background, state and ratio so another reviewer can reproduce the result. Contrast is one input to an accessibility review. Check zoom, keyboard focus and text legibility separately.
Related Ferkesh Knowledge Base guides
- How to Test an Accessible Error Path in a Website Form
- How to Optimize Website Images Without Losing Useful Detail
Ferkesh Tools
Official references
Last reviewed .
Zpětná vazba byla odeslána!