generate-accessible-palette
Generate WCAG-compliant color variants against a chosen background to improve contrast, targeting AA or AAA accessibility levels.
Instructions
Generate WCAG-compliant versions of colors for a given background
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": {
"colors": "<colors>",
"backgroundColor": "<backgroundColor>"
},
"name": "generate-accessible-palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | WCAG conformance level to target | AA |
| colors | Yes | Array of colors to make accessible | |
| backgroundColor | Yes | Background color to ensure contrast against |