Generate palette
make_paletteGenerates a 50–950 OKLCH color scale and harmony colors from a base hex, with WCAG contrast against white and black for each step. Runs locally.
Instructions
From a base color, generates the 50–950 scale (Tailwind-style, computed in OKLCH) and harmony colors, with each step's WCAG contrast against white and black. Runs locally.
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": {
"base": "<base>"
},
"name": "make_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base color in hex, e.g. #3b82f6 | |
| name | No | Color name in the CSS variables | primary |
| harmony | No | complementary |