convert_color
Converts a color to a target format such as hex, RGB, HSL, LAB, HCT, OKLAB, or OKLCH, accepting hex, CSS names, or functional color strings.
Instructions
Convert colors between formats (hex, rgb, hsl, lab, hct, oklab, oklch). Accepts hex, CSS named colors, rgb(), hsl(), oklch(), oklab(), or hct().
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>",
"to": "<to>"
},
"name": "convert_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format | |
| color | Yes | Color to convert (hex, CSS name, rgb(), hsl(), oklch(), oklab(), or hct()) |