Check WCAG Accessibility
accessibility_checkAssess WCAG 2.1 contrast ratios and AA/AAA pass/fail grades between a foreground hex and a background color.
Instructions
Return WCAG 2.1 contrast ratios and AA/AAA pass/fail grades for a foreground hex against a background.
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": {
"hex_val": "<hex_val>"
},
"name": "accessibility_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_val | Yes | Foreground hex value | |
| background | No | Background hex (default 'FFFFFF') | FFFFFF |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| error | No |