{
    "slug": "color-converter",
    "name": "Color Converter",
    "url": "https://directory.milunir.com/color-tools/color-converters/color-converter/",
    "description": "Paste one color code and read it in HEX, RGB, HSL, HSV and CMYK at once, with the working shown, e.g. rgb(255, 87, 51) becomes #FF5733.",
    "inputs": {
        "type": "object",
        "properties": {
            "color": {
                "type": "string",
                "description": "Colour code. Paste HEX, RGB, HSL, HSV/HSB or CMYK. Short HEX such as #F53 works too.",
                "default": "#FF5733"
            },
            "harmony": {
                "type": "string",
                "enum": [
                    "complementary",
                    "analogous",
                    "triadic",
                    "split",
                    "tetradic"
                ],
                "description": "Matching colours",
                "default": "complementary"
            }
        },
        "additionalProperties": false
    },
    "outputs": [
        {
            "key": "primary",
            "label": "HEX code"
        },
        {
            "key": "rgb",
            "label": "RGB"
        },
        {
            "key": "hsl",
            "label": "HSL"
        },
        {
            "key": "hsv",
            "label": "HSV / HSB"
        },
        {
            "key": "cmyk",
            "label": "CMYK"
        },
        {
            "key": "text_on",
            "label": "Readable text"
        }
    ],
    "modes": null,
    "feed": null,
    "endpoint": "https://api.tools-directory.workers.dev/v1/tools/color-converter",
    "mcp_tool": "color_converter",
    "example": {
        "inputs": {
            "color": "#663399",
            "harmony": "complementary"
        },
        "output": "HEX code: #663399\nRGB: rgb(102, 51, 153)\nHSL: hsl(270, 50%, 40%)"
    }
}