Color contrast check (WCAG): check the contrast ratio of two colors against WCAG accessibility levels
color_contrastWCAG 2 contrast ratio between a text colour and a background colour, with pass/fail for AA and AAA at normal and large text sizes. Use to check that a design is readable. Example: fg=#767676, bg=#ffffff. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
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": "color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | Background colour | |
| fg | Yes | Text colour |