Blend or build a gradient
colors_blendMix colors or build a gradient between two or more colors and get evenly spaced hex values, interpolated in OKLCH for clean midpoints without gray mud.
Instructions
Mix colors or build a gradient between 2+ colors. Returns evenly spaced hex colors with both endpoints included, interpolated in OKLCH so midpoints stay clean (no gray mud). Set at for one mixed color (0.5 = even mix). Always in sRGB gamut.
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": "colors_blend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Return just ONE blended color at this position between the first two colors (0 = first, 0.5 = even mix, 1 = second). Overrides steps. | |
| space | No | Interpolation space. "oklch" (default) keeps colors vivid and takes the shorter hue path; "oklab" is smooth but can dull; "srgb" matches old CSS gradients and goes muddy between far-apart hues; "srgb-linear" mixes in linear light (physical light mixing). | oklch |
| steps | No | How many colors to return, endpoints included. Default 5. | |
| colors | Yes | The colors to blend between, in order. 2 to 8 stops. A list, even for a single color. Any CSS color strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | Yes | ||
| colors | Yes |