def hex_to_rgb(string):
    """
    Gives and hex color and converts it to RGB color
    """
    h = string.lstrip("#")
    rgb_col = list(int(h[i:i+2], 16) for i in (0, 2, 4))
    
    return rgb_col