adjust_color
Adjust any color with lighten, darken, saturate, desaturate, hue-shift, tint, shade, grayscale, invert, or mix operations in perceptual oklch/hct or classic hsl space to avoid muddy mixes and hue drift.
Instructions
Adjust a color using perceptual (oklch, hct) or classic (hsl) math: lighten, darken, saturate, desaturate, hue-shift, tint (mix with white), shade (mix with black), grayscale, invert, or mix with a second color. Perceptual space ('oklch' default) prevents muddy mixes and hue drift.
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>",
"operation": "<operation>"
},
"name": "adjust_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with | No | Second color (only for mix) | |
| color | Yes | Color to adjust (hex, CSS name, rgb, hsl, oklch) | |
| space | No | Color space for adjustment: 'oklch' (default, perceptually uniform), 'hct', or 'hsl' | oklch |
| amount | No | Amount of change. Percent (0-100) for lighten/darken/saturate/desaturate/tint/shade, degrees (-360..360) for hue-shift, or 0-1 weight of first color for mix. Default 10 / 30 / 0.5. | |
| operation | Yes | Adjustment operation |