generate_palette_with_locks
Generate a color palette while preserving specified locked colors, using perceptual color spaces to keep chosen colors intact and produce cohesive, contrasting, or gradient results.
Instructions
Generate a color palette while preserving specific locked colors. Uses deterministic perceptual search in OKLCH/HCT/LAB/HSL and avoids universally disliked colors.
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": {
"lockedColors": "<lockedColors>",
"totalColors": "<totalColors>"
},
"name": "generate_palette_with_locks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Generation mode: harmony (cohesive), contrast (distinct), or gradient (smooth transition) | harmony |
| colorSpace | No | Color space for palette generation/interpolation (oklch/hct/lab are perceptually uniform) | oklch |
| totalColors | Yes | Total number of colors in the final palette | |
| lockedColors | Yes | Colors that must be included in the palette |