Accessibility Color Contrast
accessibility_color_contrastCalculate contrast ratio between foreground and background colors to evaluate accessibility compliance offline, no site connection needed.
Instructions
Check color contrast ratio.
Pure arithmetic: it deliberately does not touch the site, so it works without Drush configured.
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": "accessibility_color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | ||
| foreground | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||