Accessibility Tools

Color Contrast Checker

Test a text and background colour against WCAG 2 AA and AAA, preview real text, and get the nearest colour that passes.

Text colour

Transparent text is blended over the background before measuring.

Background

A transparent background is treated as sitting on white.

Contrast ratio

4.48:1

    Large text is at least 24px (18pt) regular or 18.66px (14pt) bold. Ratios are never rounded up: 4.49:1 fails AA.

    Live preview

    Normal text (16px). The quick brown fox jumps over the lazy dog.

    Large text (24px). The quick brown fox.

    Large bold text (18.66px bold). The quick brown fox.

    Button border & icon UI component sample

    Suggest the nearest passing colour

    Keeps the hue, saturation and opacity and changes only the lightness, by the smallest amount that reaches the target.

    Change

    About colour contrast and WCAG

    WCAG 2 measures contrast as a ratio between the relative luminance of two colours, from 1:1 (identical) to 21:1 (black on white). Level AA asks for 4.5:1 for normal text and 3:1 for large text; level AAA asks for 7:1 and 4.5:1. Since WCAG 2.1, icons, input borders and other meaningful graphics need 3:1 against their surroundings (success criterion 1.4.11).

    Type or paste a colour in HEX, RGB, HSL or as a CSS name, or use the colour pickers and opacity sliders. Semi-transparent text is blended over the background first, because that is the colour people actually see. If a pair fails, the suggestion finds the nearest lighter or darker shade of the same hue that passes, so your palette keeps its character.

    "Copy Share Link" puts both colours in a link for design reviews and bug reports. Everything runs in your browser; no colours are sent anywhere. To convert a colour between formats, use the Color Converter; to see how a design looks to people with colour blindness, use the Color Blindness Simulator.

    Frequently Asked Questions

    Level AA needs 4.5:1 for normal text and 3:1 for large text; level AAA needs 7:1 and 4.5:1. Icons, input borders and other meaningful graphics need 3:1 (WCAG 2.1, success criterion 1.4.11).

    At least 24px (18pt) regular, or at least 18.66px (14pt) bold.

    Semi-transparent text is blended over the background first, because that is the colour people see. A semi-transparent background is assumed to sit on a white page.

    It keeps the hue, saturation and opacity and changes only the lightness, by the smallest step that reaches your target ratio. You can adjust either the text or the background.