def hex2rgb(value):
value = value.lstrip('<STR_LIT:#>')<EOL>lv = len(value)<EOL>return tuple(int(value[i:i+lv//<NUM_LIT:3>], <NUM_LIT:16>) for i in range(<NUM_LIT:0>, lv, lv//<NUM_LIT:3>))<EOL>
Converts a hexadeximal color string to an RGB 3-tuple

    EXAMPLE
    -------
    >>> hex2rgb('#0000FF')
    (0, 0, 255)