Check Contrast Tool
check_contrastCheck the WCAG contrast ratio between a foreground and background color, with AA/AAA pass/fail for normal and large 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": {
"fg": "<fg>",
"bg": "<bg>"
},
"name": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | Background color (hex, rgb(), or hsl()). | |
| fg | Yes | Foreground color (hex, rgb(), or hsl()). |