Z13018

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z13018"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z13017",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z13017(Z13017K1):\r\n    def validate_hex_color(Z13017K1):\r\n        if len(Z13017K1) != 6 or not all(c in '0123456789abcdefABCDEF' for c in Z13017K1):\r\n            return False\r\n        return True\r\n\r\n    def hex_to_rgb(Z13017K1):\r\n        return tuple(int(Z13017K1[i:i+2], 16) for i in (0, 2, 4))\r\n\r\n    def rgb_to_hsl(r, g, b):\r\n        r, g, b = r / 255.0, g / 255.0, b / 255.0\r\n        max_val, min_val = max(r, g, b), min(r, g, b)\r\n        delta = max_val - min_val\r\n        l = (max_val + min_val) / 2\r\n\r\n        if delta == 0:\r\n            h = s = 0\r\n        else:\r\n            s = delta / (2 - max_val - min_val) if l \u003E 0.5 else delta / (max_val + min_val)\r\n            if max_val == r:\r\n                h = (g - b) / delta + (6 if g \u003C b else 0)\r\n            elif max_val == g:\r\n                h = (b - r) / delta + 2\r\n            else:\r\n                h = (r - g) / delta + 4\r\n            h *= 60\r\n\r\n        return round(h), round(s * 100), round(l * 100)\r\n\r\n    def rgb_to_hsv(r, g, b):\r\n        r, g, b = r / 255.0, g / 255.0, b / 255.0\r\n        max_val, min_val = max(r, g, b), min(r, g, b)\r\n        delta = max_val - min_val\r\n        v = max_val\r\n\r\n        if delta == 0:\r\n            h = s = 0\r\n        else:\r\n            s = delta / v\r\n            if max_val == r:\r\n                h = (g - b) / delta + (6 if g \u003C b else 0)\r\n            elif max_val == g:\r\n                h = (b - r) / delta + 2\r\n            else:\r\n                h = (r - g) / delta + 4\r\n            h *= 60\r\n\r\n        return round(h), round(s * 100), round(v * 100)\r\n\r\n    def rgb_to_cmyk(r, g, b):\r\n        r, g, b = r / 255.0, g / 255.0, b / 255.0\r\n        k = 1 - max(r, g, b)\r\n        c = (1 - r - k) / (1 - k) if (1 - k) != 0 else 0\r\n        m = (1 - g - k) / (1 - k) if (1 - k) != 0 else 0\r\n        y = (1 - b - k) / (1 - k) if (1 - k) != 0 else 0\r\n        return round(c * 100), round(m * 100), round(y * 100), round(k * 100)\r\n\r\n    Z13017K1 = Z13017K1.lstrip('#')\r\n\r\n    if not validate_hex_color(Z13017K1):\r\n        return [\"Invalid color format.\"]\r\n\r\n    rgb_color = hex_to_rgb(Z13017K1)\r\n    r, g, b = rgb_color\r\n\r\n    rgb_str = f\"RGB: rgb({r}, {g}, {b})\"\r\n    h, s, l = rgb_to_hsl(r, g, b)\r\n    hsl_str = f\"HSL: hsl({h}, {s}%, {l}%)\"\r\n    h, s, v = rgb_to_hsv(r, g, b)\r\n    hsv_str = f\"HSV: hsv({h}, {s}%, {v}%)\"\r\n    c, m, y, k = rgb_to_cmyk(r, g, b)\r\n    cmyk_str = f\"CMYK: cmyk({c}%, {m}%, {y}%, {k}%)\"\r\n\r\n    output = [rgb_str, hsl_str, hsv_str, cmyk_str]\r\n    return output"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Convert HEX color (python)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1014",
                "Z11K2": "Tụgharịa agba HEX (python)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "wandle Hex-Farbe um in Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "conversion d'une couleur hexadécimale, en Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}