color_contrast
Check the WCAG contrast ratio between two colours and report AA and AAA pass or fail for normal and large text. Pure CPU, instant. Use before shipping a palette
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>"
},
"name": "color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background colour | |
| fg | Yes | Foreground colour |