Unsupported input
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
header • up to 320x100 / 728x90
Check WCAG AA and AAA contrast ratios for text and background color combinations
Test foreground and background colors against WCAG AA and AAA thresholds.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
Color Contrast Checker computes the exact luminance-contrast ratio between a foreground (text) color and a background color using the WCAG 2.1 formula, then checks the ratio against the AA (4.5:1 normal, 3:1 large) and AAA (7:1 normal, 4.5:1 large) thresholds.
The tool also shows the APCA (Accessible Perceptual Contrast Algorithm) score, which is the successor standard proposed for WCAG 3 and handles dark-mode contrast more accurately than the legacy luminance formula.
Start with the color Contrast input you want to process in Color Contrast Checker.
Get a color Contrast result from Color Contrast Checker that is ready to review, copy, and reuse in the next step of your workflow.
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Missing fields or partial content can block processing or produce weak results.
Fix: Provide the full required input before running the tool.
Sample or placeholder values can lead to output that looks valid but is not ready for real use.
Fix: Replace placeholders with your actual values before relying on the result.
4.5:1 for normal-size text (below 18pt regular or 14pt bold) and 3:1 for large text (18pt+ regular or 14pt+ bold). WCAG AAA tightens these to 7:1 and 4.5:1 respectively. Icons and UI components only need 3:1 under WCAG 2.1 non-text contrast rules.
APCA (Accessible Perceptual Contrast Algorithm) is the contrast metric proposed for WCAG 3. It weights dark-on-light differently from light-on-dark, which fixes the known issue where WCAG 2.1 penalizes certain dark-mode pairs that are perfectly readable. The tool shows both so you can start using APCA while AA/AAA remain the official requirement.
Partially. WCAG's text-size thresholds (normal vs large) already account for whether bold and larger fonts need less contrast. The tool previews sample text at 14/16/18/24 pixel sizes so you can see which threshold applies to your actual UI copy.
Yes. WCAG 2.1 SC 1.4.11 requires 3:1 contrast for non-text UI components. Use the tool with the icon color as foreground and the adjacent background — the 'Non-text contrast' badge shows whether the pair clears the 3:1 threshold.
Yes — the preview panel includes toggles for protanopia (red-blind), deuteranopia (green-blind), and tritanopia (blue-blind) so you can see whether your pair still reads clearly for those users. The filters use the Brettel/Viénot transformation, which matches how Chrome DevTools and Figma simulate.
Click 'Suggest fix' — the tool searches in HSL space, adjusting lightness by the smallest delta needed to clear the threshold while keeping hue and saturation stable. That way the fix looks like the same color, just a bit lighter or darker.
Continue the workflow with related tools for color Contrast, adjacent input and output steps, or other utilities in the same category. You can also browse the full CSS Tools category for more options.
Check tap target size and spacing against mobile accessibility guidelines
Generate CSS gradient code visually
Generate light and dark theme CSS variables for design systems with media-query or data-attribute theming output.
Generate responsive clamp() CSS for typography and spacing with viewport-based fluid sizing
Mix two colors together
Generate harmonious color palettes
Generate shades and tints of a color
Generate tints of a color
Build CSS keyframe animations from practical presets with timing controls, live preview, and reusable class output.
Generate CSS box-shadow code visually
Generate CSS button styles visually
Generate CSS cubic-bezier timing functions visually