Generate a color scheme
generate_paletteComputes color schemes from a base color and returns WCAG contrast ratios on white and black, with optional contrast checks against a second color.
Instructions
Computes color schemes from one base color locally (no external service): analogous, complementary, split-complementary, triadic, tetradic, tints, tones, shades. Every color comes with its WCAG 2 contrast ratio on white and black and the better text color. Optionally checks the contrast against a second color.
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": {
"color": "<color>"
},
"name": "generate_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Base color as hex, for example "#3366ff" or "36f". | |
| scheme | No | all | |
| contrast_with | No | Second hex color: returns the WCAG contrast between both. |