convert_color
Convert a color between HEX, RGB, and HSL. Enter any format to receive all three representations as output.
Instructions
Convert a color between HEX, RGB, and HSL formats. Input any format and get all three representations back.
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>"
},
"name": "convert_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Color value in HEX (#FF5733), RGB (rgb(255,87,51)), or HSL (hsl(11,100%,60%)) | |
| format | No | Preferred output format: "hex", "rgb", or "hsl". Returns all formats regardless. |