a11y_validate
Check foreground and background color contrast for WCAG 2.1 and APCA. Returns ratio, pass/fail for normal and large text, and suggested fixes.
Instructions
Check one foreground and background color pair for accessibility (WCAG 2.1 and APCA).
FREE - No API key required.
Returns the contrast ratio, pass or fail for normal and large text, and suggested fixes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"foreground": "<foreground>",
"background": "<background>"
},
"name": "a11y_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fontSize | No | Font size in pixels (affects the large-text thresholds) | |
| algorithm | No | Contrast algorithm (default: both) | |
| background | Yes | Background color in hex | |
| foreground | Yes | Text color in hex |