def Hexrgb(dec):
    """
    hex to rgb converter
    Arguments: dec = hexadecimal color to convert
    retuns a string of rgb color.
    """
    assert dec == str(dec)
    if dec.startswith('#'):
        dec = dec[1:]
    r = int(dec[0:2], base=16)
    g = int(dec[2:4], base=16)
    b = int(dec[4:6], base=16)
    color = r, g, b
    return color
