Design
Resolve any hex color to its nearest CSS named color with true CIEDE2000 ΔE distance, then browse the whole color family it belongs to.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/css-color-name-resolver' \
-H 'Content-Type: application/json' \
-d '{"color":"#f4a460","metric":"ciede2000","mode":"nearest","matchCount":8}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/css-color-name-resolver| Name | Type | Required | Description |
|---|---|---|---|
| color | text | Yes | — |
| metric | select | No | — |
| mode | select | No | — |
| matchCount | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-css-color-name-resolver": {
"name": "css-color-name-resolver",
"description": "Resolve any hex color to its nearest CSS named color with true CIEDE2000 ΔE distance, then browse the whole color family it belongs to.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=css-color-name-resolver",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "css-color-name-resolver",
"arguments": {
"color": "#f4a460",
"metric": "ciede2000",
"mode": "nearest",
"matchCount": 8
}
}
}Questions or issues? Contact [email protected]