Fix a palette to be colorblind-safe
fixPaletteAdjusts color palettes that fail colorblind-safety checks, returning minimally altered colors separated in lightness so they pass.
Instructions
Take a set of colors that fails the colorblind-safety check and return an adjusted set that passes, staying as close to the originals as possible. Conflicting colors are separated in lightness (the axis color-vision deficiency preserves). Returns the new colors, how far each moved, and whether it fully passes.
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>"
},
"name": "fixPalette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | Hex colors to fix, e.g. ["#d7191c","#1a9641"] |