contrast_check
Check WCAG contrast ratios between foreground and background colors to determine AA/AAA compliance for text and UI components.
Instructions
Check WCAG contrast ratio between two colors. Reports AA/AAA compliance for normal text, large text, and UI components.
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": {
"color1": "<color1>",
"color2": "<color2>"
},
"name": "contrast_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color1 | Yes | First color (foreground) in any supported format | |
| color2 | Yes | Second color (background) in any supported format |