Check WCAG Text Contrast
check_contrastEvaluate foreground/background hex color contrast ratios against WCAG AA and AAA, with an option to flag large text, to verify accessible color pairings.
Instructions
Evaluate opaque foreground/background hex color ratios against WCAG AA and AAA; specify largeText for large type.
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": {
"pairs": "<pairs>"
},
"name": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | Yes |