Convert Color
convert_colorConvert a hex color to RGB, HSL, and HSB, with WCAG contrast against white and black and complementary, analogous, and triadic harmonies. Same math as the color picker. No API token. Picking a color from an image or the screen stays on the website because those need the picture itself.
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": {
"hex": "<hex>"
},
"name": "convert_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | Hex color, with or without #. Three or six digits, for example #3B82F6. |