generate_categorical_palette
Generate perceptually balanced, color-blind-safe categorical colors for charts, badges, tags, or avatars, optimized to keep categories distinct under normal and color-vision-deficient sight.
Instructions
Generate N perceptually balanced, color-blind-safe categorical colors for charts, badges, tags, or avatars. Optimizes minimum ΔE2000 across normal vision AND protanopia/deuteranopia/tritanopia so no category vanishes or collides.
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": {
"count": "<count>"
},
"name": "generate_categorical_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of distinct categories (2-12) | |
| seedColor | No | Optional brand/anchor color to start the categorical spread from | |
| background | No | Target canvas polarity ('light' or 'dark') | light |