Contrast ratios

Contrast ratios for common colors

Every Tailwind CSS v4 color and every CSS named color, checked as text on white and black and as a background for white and black text. Ratios are exact and cut, never rounded up.

Color codes for these colors: /color/

Tailwind CSS v4 colors

On white

On black

CSS named colors

Check any two colors

Choose your own text and background colors and see their exact contrast ratio.

Open the Contrast Checker