design_check_contrast
Check WCAG contrast ratios between foreground and background colors to verify AA/AAA compliance and get actionable suggestions when contrast fails.
Instructions
Check WCAG contrast ratio between two colors. Returns ratio, AA/AAA pass status, and suggestions if failing.
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": "design_check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | Background color (hex) | |
| foreground | Yes | Foreground color (hex) |