def rgb_to_hex(value1, value2, value3):
    """
    Convert RGB color to hex color
    """
    for value in (value1, value2, value3):
        if not 0 <= value <= 255:
            raise ValueError('Value each slider must be ranges from 0 to 255')
    return {'hex_color': '#{0:02X}{1:02X}{2:02X}'.format(value1, value2,
        value3), 'link':
        'http://www.color-hex.com/color/{0:02X}{1:02X}{2:02X}'.format(
        value1, value2, value3)}
