Contrast Ratio Calculation
Calculate precise contrast ratios between foreground and background colors.
FREE
Instantly check if your color combinations meet WCAG accessibility standards. Get contrast ratios and AA/AAA compliance status for any foreground/background pair.
Calculate precise contrast ratios between foreground and background colors.
Check if colors pass WCAG AA standards (4.5:1 normal, 3:1 large text).
Verify enhanced compliance (7:1 normal, 4.5:1 large text).
Accepts hex colors (#fff, #ffffff) or rgb() format.
// Request
{"name": "ux_contrast_check", "arguments": {
"foreground": "#ffffff",
"background": "#10b981"
}}
// Response
{
"foreground": "#ffffff",
"background": "#10b981",
"ratio": 3.94,
"ratio_string": "3.94:1",
"aa_normal": false,
"aa_large": true,
"aaa_normal": false,
"aaa_large": false
}
Cost: FREE • No API key required
Check all color token combinations in your design system for accessibility compliance.
Automate contrast checks in your build pipeline to catch accessibility regressions.
Ensure dark mode and light mode themes both meet accessibility standards.
Verify WCAG compliance instantly. No API key required, unlimited usage.
Get Started