Find nearest Tailwind CSS colors
nearest_tailwind_colorsFind the closest matching Tailwind CSS palette colors for any CSS color value. Supports multiple color spaces and customizable filtering to match designs to Tailwind's color system.
Instructions
Given any CSS color, find the nearest Tailwind CSS palette colors.
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": "nearest_tailwind_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | Any CSS color (e.g. #fff, #fafafa, rgb(...), hsl(...), or named color). | |
| n | No | Number of nearest colors to return (default 5 if not provided). | |
| excludeColors | No | List of Tailwind color names to exclude, e.g. ['white', 'black', 'neutral-950'] (default to none if not provided). | |
| space | No | Color space for comparison (default to 'lab' if not provided). 'lab' is recommended for most use cases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes |