def rgb_maximize(r, g, b, scale=255):
    """ Calculates full luminosity RGB values from rgb chromacity coordinates
    :param r: Red ratio
    :param g: Green ratio
    :param b: Blue ratio
    :param scale: Output R,G,B values scale
    :return: RGB tuple
    """
    ratio = scale / max(r, g, b)
    return tuple(int(i * ratio) for i in (r, g, b))