def is_rgb(in_col):
    """
	Check whether input is a valid RGB color.
	Return True if it is, otherwise False.
	"""
    if len(in_col) == 3 and type(in_col) == tuple:
        if type(in_col[0]) is int and type(in_col[1]) and type(in_col[2]
            ) and 0 <= in_col[0] <= 255 and 0 <= in_col[1
            ] <= 255 and 0 <= in_col[2] <= 255:
            return True
        else:
            return False
    else:
        return False
