wcag_contrast
Calculate the WCAG contrast ratio between two hex colors and verify AA/AAA compliance for normal and large text.
Instructions
WCAG relative luminance contrast ratio between two hex colors (#RGB or #RRGGBB). Reports AA/AAA pass for normal and large text.
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": "wcag_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | Yes | Background hex color | |
| fg | Yes | Foreground hex color |