check_contrast
Check WCAG 2.1 contrast ratio between two hex colors to determine if it meets AA thresholds (4.5:1 normal, 3:1 large text/non-text).
Instructions
Check the WCAG 2.1 contrast ratio between two hex colors and whether it clears the AA thresholds (4.5:1 for normal text, 3:1 for large text or non-text).
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": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | ||
| foreground | Yes |