check_contrast
Check the contrast ratio between two hex colors to ensure text readability and accessibility compliance.
Instructions
Check color contrast ratio between two colors.
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": "check_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foreground | Yes | Foreground color hex | |
| background | Yes | Background color hex |