Z13024

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z13024"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z13023",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z13023(Z13023K1):\r\n    color_codes = {\r\n        \"red\": \"#ff0000\", \"green\": \"#00ff00\", \"blue\": \"#0000ff\", \"cyan\": \"#00ffff\",\r\n        \"magenta\": \"#ff00ff\", \"yellow\": \"#ffff00\", \"black\": \"#000000\", \"white\": \"#ffffff\",\r\n        \"orange\": \"#ffa500\", \"purple\": \"#800080\", \"pink\": \"#ffc0cb\", \"brown\": \"#a52a2a\",\r\n        \"gray\": \"#808080\", \"lightblue\": \"#add8e6\", \"lime\": \"#00ff00\", \"maroon\": \"#800000\",\r\n        \"navy\": \"#000080\", \"olive\": \"#808000\", \"silver\": \"#c0c0c0\", \"teal\": \"#008080\",\r\n        \"violet\": \"#ee82ee\", \"aquamarine\": \"#7fffd4\", \"coral\": \"#ff7f50\", \"crimson\": \"#dc143c\",\r\n        \"indigo\": \"#4b0082\", \"lavender\": \"#e6e6fa\", \"turquoise\": \"#40e0d0\", \"salmon\": \"#fa8072\",\r\n        \"gold\": \"#ffd700\", \"khaki\": \"#f0e68c\", \"orchid\": \"#da70d6\", \"skyblue\": \"#87ceeb\",\r\n        \"tan\": \"#d2b48c\", \"wheat\": \"#f5deb3\", \"darkgreen\": \"#006400\", \"forestgreen\": \"#228b22\",\r\n        \"slateblue\": \"#6a5acd\", \"peru\": \"#cd853f\", \"sienna\": \"#a0522d\", \"rosybrown\": \"#bc8f8f\",\r\n        \"powderblue\": \"#b0e0e6\", \"midnightblue\": \"#191970\", \"darkviolet\": \"#9400d3\", \"firebrick\": \"#b22222\",\r\n        \"darkorange\": \"#ff8c00\", \"darkturquoise\": \"#00ced1\"\r\n    }\r\n\r\n    hex_to_color = {v: k for k, v in color_codes.items()}\r\n\r\n    Z13023K1_lower = Z13023K1.lower()\r\n\r\n    if Z13023K1_lower in color_codes:\r\n        hex_color = color_codes[Z13023K1_lower]\r\n        color_name = Z13023K1_lower\r\n    elif Z13023K1_lower.startswith('#') and len(Z13023K1_lower) == 7 and all(c in '0123456789abcdef' for c in Z13023K1_lower[1:]):\r\n        hex_color = Z13023K1_lower\r\n        color_name = hex_to_color.get(Z13023K1_lower)\r\n    else:\r\n        return \"Invalid input format!\"\r\n\r\n    hex_color = hex_color.lstrip('#')\r\n\r\n    r = int(hex_color[0:2], 16)\r\n    g = int(hex_color[2:4], 16)\r\n    b = int(hex_color[4:6], 16)\r\n\r\n    opposite_r = 255 - r\r\n    opposite_g = 255 - g\r\n    opposite_b = 255 - b\r\n\r\n    opposite_hex_color = \"#{:02x}{:02x}{:02x}\".format(opposite_r, opposite_g, opposite_b)\r\n\r\n    if opposite_hex_color in hex_to_color:\r\n        opposite_color_name = hex_to_color[opposite_hex_color]\r\n        return f\"{opposite_color_name} ({opposite_hex_color})\"\r\n    else:\r\n        return opposite_hex_color"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Opposite color (python)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1014",
                "Z11K2": "agwa nke ọzọ (python )"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Komplementärfarbe in Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1003",
                "Z11K2": "color opuesto (Python)"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}