Build a palette
colors_paletteGenerate finished color palettes in hex: tonal ramps, light/dark UI themes with contrast checks, color-blind-safe categorical sets, and symmetric diverging scales.
Instructions
Build a finished color palette with verified accessibility. kind "ramp": an 11-step tonal scale of a color (lightest to darkest, the seed is one step, evenly spaced). kind "theme": light and dark UI tokens (background, surface, surface-raised, text, text-muted, border, primary, on-primary) from a brand color, with every text contrast rule checked. kind "categorical": N clearly different, color-blind-safe colors for charts. kind "diverging": a scale from color through a light neutral to color2, with symmetric lightness. Returns hex values ready to use.
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": {
"kind": "<kind>"
},
"name": "colors_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cvd | No | Categorical only: color-blindness types the set must survive. Default "all" (protan, deutan, tritan). | all |
| kind | Yes | "ramp" = tonal scale (50..950) of one color; "theme" = light + dark UI tokens from a brand color; "categorical" = a set of clearly different colors for charts or tags; "diverging" = a scale from one color through a light neutral to a second color. | |
| color | No | Seed color. Required for "ramp" and "theme" (the brand color) and for "diverging" (the left end). Ignored for "categorical". | |
| count | No | Categorical only: how many colors. Default 5. | |
| steps | No | Ramp: number of steps, default 11 (named 50, 100 ... 950). Diverging: an odd number of steps, default 7. | |
| color2 | No | "diverging" only: the color at the right end. | |
| background | No | Categorical only: the background the colors sit on. Default "#ffffff". | #ffffff |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| names | No | ||
| theme | No | ||
| colors | No | ||
| seedIndex | No | ||
| separation | No | ||
| contrastRulesTotal | No | ||
| contrastRulesPassed | No |