check_color_contrast
Check WCAG contrast ratio between two hex colors to ensure accessible text visibility.
Instructions
Check WCAG contrast ratio between two colors for accessibility.
Parameters:
foreground — Foreground hex color (without #).
background — Background hex color (without #).
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_color_contrast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foreground | Yes | ||
| background | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |