WCAG contrast checker
wcag_contrast_checkerCompute the WCAG 2.x contrast ratio between two hex colors and whether it passes AA/AAA for normal and large text. Runs on smart-tools.xyz.
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": "wcag_contrast_checker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Language for the source_url link (default en) | |
| background | Yes | Background colour as hex, e.g. #ffffff | |
| foreground | Yes | Text colour as hex, e.g. #767676 |