FiFont
← All guides

Accessibility

Check foreground and background contrast

Use contrast measurements as one part of testing real text readability.

1. Enter two opaque colors

Open the contrast tool and use six-digit sRGB colors for text and background. If text is transparent or over an image, first determine the actual composite background.

2. Check the intended text size

Normal text needs a higher contrast ratio than qualifying large text under WCAG. The tool reports the normal-text AA and AAA thresholds.

3. Review the whole state

Check hover, selected, focus, error and disabled styles separately. Contrast is not the only requirement for accessibility.

4. Proof real typography

Thin or decorative letters may be difficult despite a passing ratio. Test the actual typeface and size on several displays.

Check a button before selecting its font

Enter #202020 and #FFFFFF into the contrast calculator. Then compare #999999 against the same white background; the latter is approximately 2.85:1 and does not meet the 4.5:1 normal-text AA threshold. Test the actual button label at its selected size and weight and repeat for its hover and focus colors.

Common pitfall

A contrast ratio is not a complete accessibility audit. Transparent backgrounds, thin strokes, photography and changing states require additional checks; never infer a passing result solely from the typeface.

Check contrast →

Continue learning

Typography reference with visual examples →