{
    "slug": "color-name-finder",
    "name": "Color Name Finder",
    "url": "https://directory.milunir.com/color-tools/color-pickers/color-name-finder/",
    "description": "Turn a hex or RGB value into the nearest of the 148 CSS color names, look up a name's hex code, or browse the full web color names list.",
    "inputs": {
        "type": "object",
        "properties": {
            "mode": {
                "type": "string",
                "enum": [
                    "hex",
                    "name",
                    "list"
                ],
                "description": "Mode",
                "default": "hex"
            },
            "color": {
                "type": "string",
                "description": "Hex or RGB color",
                "default": "#6495ED"
            },
            "name": {
                "type": "string",
                "description": "CSS color name",
                "default": "rebeccapurple"
            },
            "filter": {
                "type": "string",
                "description": "Names containing. Leave empty to list all 148."
            }
        },
        "additionalProperties": false
    },
    "outputs": [
        {
            "key": "primary",
            "label": "Color"
        },
        {
            "key": "hex",
            "label": "Reference"
        },
        {
            "key": "detail",
            "label": "Match"
        }
    ],
    "modes": [
        {
            "id": "hex",
            "label": "Hex to name",
            "inputs": [
                "color"
            ]
        },
        {
            "id": "name",
            "label": "Name to hex",
            "inputs": [
                "name"
            ]
        },
        {
            "id": "list",
            "label": "All web names",
            "inputs": [
                "filter"
            ]
        }
    ],
    "feed": null,
    "endpoint": "https://api.tools-directory.workers.dev/v1/tools/color-name-finder",
    "mcp_tool": "color_name_finder",
    "example": {
        "inputs": {
            "mode": "hex",
            "color": "#6495ED"
        },
        "output": "Color: cornflowerblue\nReference: #6495ED\nMatch: Exact match"
    }
}