Color blindness simulation
colors_visionSimulate color blindness to see how colors appear and measure whether sets stay distinguishable, flagging the weakest pair per vision type so you can check chart and status colors before red/green pairs collide.
Instructions
Simulate how colors look with color blindness (Machado 2009 model) and, for 2+ colors, measure whether the set stays distinguishable: returns the weakest pair per vision type. Use to check chart or status colors, or to find out if red/green pairs will collide. To BUILD a color-blind-safe set use colors_palette with kind "categorical".
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": "colors_vision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Which color vision to simulate. "deuteranopia" and "protanopia" are red-green; "tritanopia" is blue-yellow; "achromatopsia" is no color; "all" (default) runs all four. | all |
| colors | Yes | Colors to simulate (and compare with each other). A list, even for a single color. Any CSS color strings. | |
| minDifference | No | A pair counts as distinguishable when its CIEDE2000 difference is at least this. Default 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| separation | Yes | ||
| simulations | Yes | ||
| allDistinguishable | No |