Skip to main content
Glama
brunocpf

Nearest Tailwind Colors

by brunocpf

nearest_tailwind_colors

Find 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYesAny CSS color (e.g. #fff, #fafafa, rgb(...), hsl(...), or named color).
nNoNumber of nearest colors to return (default 5 if not provided).
excludeColorsNoList of Tailwind color names to exclude, e.g. ['white', 'black', 'neutral-950'] (default to none if not provided).
spaceNoColor space for comparison (default to 'lab' if not provided). 'lab' is recommended for most use cases.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brunocpf/nearest-tailwind-colors-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server