Describe or validate colors
colors_infoValidate color strings and describe each in hex, RGB, HSL, OKLCH, closest CSS name, lightness, sRGB fit, and white/black contrast to choose text color.
Instructions
Validate color strings and describe each: hex, rgb, hsl, oklch, closest CSS name, how light it is, whether it fits sRGB, and contrast against white and black (so you can pick black or white text). Use to check that an input is a real color, or to understand an unfamiliar color. Bad inputs are reported per color, with a suggestion.
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": {
"colors": "<colors>"
},
"name": "colors_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | Colors to describe or validate. A list, even for a single color. Any CSS color strings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes |