Palette harmony
palette_harmonyBuild color harmonies from base colors. Pass colors (one to six colors as hex, rgb(), hsl() or CSS names, comma or newline separated, or an array) and optionally harmony (complementary, analogous, triadic, split-complementary or tetradic) to return one scheme. Hue is rotated in OKLCH with lightness and chroma held, so the set is evenly weighted; colors that cannot hold the chroma inside sRGB are reduced and marked. Returns hex and oklch() for each color, a note on which harmony suits which job, and a list of near-duplicates (OKLab distance under 3, a working convention). Near-gray bases have no hue and are flagged. OKLCH opposites differ from the red-yellow-blue paint wheel. Pure maths, nothing stored.
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": {
"colors": "<colors>"
},
"name": "palette_harmony"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | One to six base colors: a string such as "#1b3a5c, #e4572e" or an array of strings. | |
| harmony | No | Return only this harmony. Omit for all five. |