convert-color
Convert a color from hex, RGB, or named values into a specified color space such as sRGB, Lab, Oklch, HSL, CMYK, Rec2020, ProPhoto, or ACEScg.
Instructions
Convert a color to a different color space (sRGB, Lab, Oklch, HSL, CMYK, Rec2020, ProPhoto, ACEScg, etc.)
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>",
"targetSpace": "<targetSpace>"
},
"name": "convert-color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color value (hex, RGB, or named color) | |
| targetSpace | Yes | Target color space for conversion |