CSS Animation Generator
Free visual CSS animation generator with live preview. Pick presets or build custom @keyframes, tune duration, timing, iterations, and copy the CSS instantly.
Check any text and background color combination against WCAG AA and AAA, free and entirely in your browser, with a live preview and pass/fail badges.
The Color Contrast Checker is a free accessibility tool that measures the contrast ratio between a foreground (text) color and a background color, then tells you whether that pair meets the WCAG 2.1 accessibility guidelines. Pick two colors and it instantly returns a ratio like 4.5:1 plus clear PASS or FAIL badges for AA and AAA at both normal and large text sizes.
Contrast is one of the most common accessibility failures on the web, and it directly affects whether people with low vision, color blindness, or aging eyes can read your content. This checker runs entirely in your browser, so nothing you enter is uploaded or stored.
WCAG expresses contrast as a ratio between 1:1 (no contrast, identical colors) and 21:1 (pure black on pure white). The higher the number, the easier the text is to read. The thresholds you need to remember are:
As a rule of thumb, aim for 4.5:1 on everything you can, and treat 3:1 as the floor for oversized headings and interface elements only.
The tool uses the official WCAG relative-luminance formula. Each color's red, green, and blue channels are converted from sRGB to linear values, weighted (green counts most, blue least), and summed into a single luminance figure. The ratio is then (L_lighter + 0.05) / (L_darker + 0.05). Because the formula is perceptual rather than a simple color distance, two colors that look different to you can still fail if their luminance is close. If you want to inspect the underlying channel values, our Hex to RGB Converter breaks any hex code into its exact red, green, and blue components.
This tool is built for auditing accessibility, not for inventing new palettes. If you are still choosing colors, start with the HTML Color Picker to grab exact hex codes, or generate a full scheme with the Color Palette Generator. Once you have candidate colors, bring the pairs here to confirm the text will actually be legible. The same discipline applies to backgrounds built with the CSS Gradient Generator — check text against both the lightest and darkest stops of the gradient so it stays readable across the whole surface.
You need at least 4.5:1 for normal body text and 3:1 for large text (roughly 18.66px bold or 24px regular and above). Meeting AA is what most accessibility laws and policies require.
WCAG defines large text as 18.66px (14pt) bold or 24px (18pt) regular and larger. Large text is easier to read, so it is allowed a lower 3:1 contrast threshold instead of 4.5:1.
No. Every calculation runs locally in your browser using JavaScript. No colors are uploaded, logged, or stored, so you can safely test unreleased brand colors.
Contrast depends on relative luminance, not on how different the hues appear. Two vivid colors with similar brightness (for example, medium red on medium green) can have a low ratio and fail even though they look distinct.
It keeps the color's hue and saturation but adjusts its lightness step by step until the pair reaches your chosen target ratio, then applies the nearest passing value. It is a fast way to fix a failing combination without redesigning your palette.
No. 3:1 only satisfies AA for large text, UI components, and graphical objects. Regular paragraph text must reach 4.5:1 for AA, and 7:1 if you are targeting the stricter AAA level.