def rgb(r, g, b):
    """
    rbg to web color

    :param r: red, 0~255
    :param g: green, 0~255
    :param b: blue, 0~255
    :return:
    """
    try:
        rf = int(r)
        gf = int(g)
        bf = int(b)
    except:
        raise Exception('Cant convert color value to float!')
    return '#{:02X}{:02X}{:02X}'.format(r, g, b)
