def rbgToHex(*clr):
    """Given a color in rbg, convert it to hexadecimal color""" 
    if len(clr) != 3 or max(clr) > 255 or min(clr) < 0: raise ValueError('invalid color')
    return '#' + ''.join([
        hex(c)[2:].zfill(2) for c in clr 
        ]).upper()