color contrast
color_contrastWCAG 2.2 colour contrast check: ratio for text and background colours (hex, rgb, hsl or names), pass / fail for AA and AAA normal and large text and UI components, and a corrected foreground colour that passes AA. Costs $0.002 USDC per call (x402).
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": "color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | ||
| foreground | Yes |