
# On occasion, I'll see an error message about a bug where instead of the hex code value,
# an HTML color name has been used. In the JS the name gets transformed as a slice of [1:7],
# which would makes sense if we're talking about transforming #334455 into 334455

# I can't reproduce this on any of my devices so it's harder to debug on the JS side,
# but something trivial to fix (and test!) on the validation side.

# Below is a list of those html color name fragments, and what color code they're associated with

# If I see any other errors come through, it's easy enough to just add them to the dict below.

html_color_name_fragments = {
    "ink": "ffc0cb",
    "ightpi": "ffb6c1",
    "otpink": "ff69b4",
    "eeppin": "ff1493",
    "alevio": "db7093",
    "ediumv": "c71585",
    "ightsa": "ffa07a",
    "almon": "fa8072",
    "ark gr": "a9a9a9",
    "ark bl": "00008b",
    "arksal": "e9967a",
    "ightco": "f08080",
    "ndianr": "cd5c5c",
    "rimson": "dc143c",
    "irebri": "b22222",
    "arkred": "8b0000",
    "ed": "ff0000",
    "carlet": "ff2400",
    "ranger": "ff4500",
    "omato": "ff6347",
    "oral": "ff7f50",
    "arkora": "ff8c00",
    "range": "ffa500",
    "ellow": "ffff00",
    "ightye": "ffffe0",
    "emonch": "fffacd",
    "ightgo": "fafad2",
    "apayaw": "ffefd5",
    "occasi": "ffe4b5",
    "eachpu": "ffdab9",
    "alegol": "eee8aa",
    "haki": "f0e68c",
    "arkkha": "bdb76b",
    "old": "ffd700",
    "ornsil": "fff8dc",
    "lanche": "ffebcd",
    "isque": "ffe4c4",
    "avajow": "ffdead",
    "heat": "f5deb3",
    "urlywo": "deb887",
    "an": "d2b48c",
    "osybro": "bc8f8f",
    "andybr": "f4a460",
    "oldenr": "daa520",
    "arkgol": "b8860b",
    "eru": "cd853f",
    "hocola": "d2691e",
    "addleb": "8b4513",
    "ienna": "a0522d",
    "rown": "a52a2a",
    "aroon": "800000",
    "avende": "e6e6fa",
    "histle": "d8bfd8",
    "lum": "dda0dd",
    "iolet": "ee82ee",
    "rchid": "da70d6",
    "uchsia": "ff00ff",
    "agenta": "ff00ff",
    "ediumo": "ba55d3",
    "ediump": "9370db",
    "luevio": "8a2be2",
    "arkvio": "9400d3",
    "arkorc": "9932cc",
    "arkmag": "8b008b",
    "urple": "800080",
    "ndigo": "4b0082",
    "arksla": "483d8b",
    "latebl": "6a5acd",
    "ediums": "7b68ee",
    "hite": "ffffff",
    "now": "fffafa",
    "oneyde": "f0fff0",
    "intcre": "f5fffa",
    "zure": "f0ffff",
    "licebl": "f0f8ff",
    "hostwh": "f8f8ff",
    "hitesm": "f5f5f5",
    "eashel": "fff5ee",
    "eige": "f5f5dc",
    "ldlace": "fdf5e6",
    "loralw": "fffaf0",
    "vory": "fffff0",
    "ntique": "faebd7",
    "inen": "faf0e6",
    "avende": "fff0f5",
    "istyro": "ffe4e1",
    "ainsbo": "dcdcdc",
    "ightgr": "d3d3d3",
    "ilver": "c0c0c0",
    "arkgra": "a9a9a9",
    "ray": "808080",
    "rey": "808080",
    "imgray": "696969",
    "ightsl": "778899",
    "lategr": "708090",
    "arksla": "2f4f4f",
    "lack": "000000",
    "arkoli": "556b2f",
    "live": "808000",
    "livedr": "6b8e23",
    "ellowg": "9acd32",
    "imegre": "32cd32",
    "ime": "00ff00",
    "eon Re": "ff0000",
    "awngre": "7cfc00",
    "hartre": "7fff00",
    "reenye": "adff2f",
    "pringg": "00ff7f",
    "ediums": "00fa9a",
    "ightgr": "90ee90",
    "alegre": "98fb98",
    "arksea": "8fbc8f",
    "ediuma": "66cdaa",
    "ediums": "3cb371",
    "eagree": "2e8b57",
    "orestg": "228b22",
    "reen": "008000",
    "arkgre": "006400",
    "qua": "00ffff",
    "yan": "00ffff",
    "ightcy": "e0ffff",
    "aletur": "afeeee",
    "quamar": "7fffd4",
    "urquoi": "40e0d0",
    "ediumt": "48d1cc",
    "arktur": "00ced1",
    "ightse": "20b2aa",
    "adetbl": "5f9ea0",
    "arkcya": "008b8b",
    "eal": "008080",
    "ightst": "b0c4de",
    "owderb": "b0e0e6",
    "ightbl": "add8e6",
    "kyblue": "87ceeb",
    "ky blu": "87ceeb",
    "ightsk": "87cefa",
    "eepsky": "00bfff",
    "odgerb": "1e90ff",
    "ornflo": "6495ed",
    "teelbl": "4682b4",
    "oyalbl": "4169e1",
    "lue": "0000ff",
    "ediumb": "0000cd",
    "arkblu": "00008b",
    "avy": "000080",
    "idnigh":  "191970",
}