What is the benchmark algorithm to change perceptive brightness of an RGB pixel. such as:
if I have RGB (120, 33, 213) then ( ... using ... (0.299*R + 0.587*G + 0.114*B) ....) i get 79.533 as perceptive brightness but I do not have a way to raise the brightness of the same pixel to 80 as there are many possible values for it.
I have searched for solution for a while but could not get it. There are some algorithms to calculate the brightness such as:
Formula to determine brightness of RGB color
But these algorithms are not reversible.
Also, I am not considering using HSL or HSV as a correct approach unless somebody can correct me?
Edit: using HSL color space I am able to control the brightness while preserving the color to a great extent but I am wondering if there is a better approach.
Thanks-