Check Colour Contrast
check_color_contrastCompute the WCAG 2.2 contrast ratio between two colors and determine if they meet AA or AAA threshold requirements.
Instructions
Compute the exact WCAG 2.2 contrast ratio between two colours and report which AA/AAA thresholds it passes. This is a specific formula, not a judgement call — do not estimate it. Web version: https://buildutilities.com/color-contrast-checker
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 |
|---|---|---|---|
| background | Yes | Hex colour, e.g. #ffffff | |
| foreground | Yes | Hex colour, e.g. #1a1a1a |