WCAG contrast ratio
bursia_contrast_ratioWCAG contrast ratio between two hex colors, with AA/AAA pass flags. Pure computation, 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": {
"foreground": "<foreground>",
"background": "<background>"
},
"name": "bursia_contrast_ratio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| background | Yes | Background color in hex, e.g. #070b16. | |
| foreground | Yes | Text color in hex, e.g. #ffffff. |