def hex_to_rgb(hexx):
h = hexx.strip('<STR_LIT:#>')<EOL>l = len(h)<EOL>return tuple(int(h[i:i+l//<NUM_LIT:3>], <NUM_LIT:16>) for i in range(<NUM_LIT:0>, l, l//<NUM_LIT:3>))<EOL>
Utility function to convert hex to (r,g,b) triples.
http://ageo.co/1CFxXpO

Args:
    hexx (str): A hexadecimal colour, starting with '#'.

Returns:
    tuple: The equivalent RGB triple, in the range 0 to 255.