color_convert
Convert a color from HEX, RGB, HSL, HSV, or CMYK into all other formats at once, so you can reuse the same value across design and code.
Instructions
Convert a color from one format into ALL other formats (HEX, RGB, HSL, HSV, CMYK) at once.
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>",
"from": "<from>"
},
"name": "color_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source format: hex, rgb, hsl, hsv, or cmyk | |
| color | Yes | The color value, e.g. #ff0000 or rgb(255,0,0) |