validate-wcag-contrast
Check whether a foreground and background color combination meets WCAG contrast requirements for text, UI components, or graphical objects at AA or AAA levels.
Instructions
Check if a color combination meets WCAG accessibility requirements
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": "validate-wcag-contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | WCAG conformance level to check | AA |
| textSize | No | Text size category | normal |
| background | Yes | Background color | |
| foreground | Yes | Foreground (text) color | |
| componentType | No | Element type: text, UI component (buttons/inputs), or graphical object | text |