I want to know the formula to change a single color to a target color by hue saturation based on HSB
I would like to know the formula to change a single color to the desired color based on the HSB value in the hue saturation adjustment layer.
For example
H0
S2
B97
to
H15
S14
B86
If you want to change it to
Hue (H): target 15 - original 0 = +15
Saturation (S): 14 of target - 2 of original = +12
Lightness (B): 86 of target - 97 of original = -11
would result in a color that is less saturated than the target color.
I would appreciate it if you could tell me if you know the formula to calculate how much to change the hue saturation lightness from the HSB value to the target color.
Thank you in advance.
