Skip to main content
木原雄大
Participating Frequently
January 15, 2024
Question

I want to know the formula to change a single color to a target color by hue saturation based on HSB

  • January 15, 2024
  • 1 reply
  • 1611 views

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.

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
January 15, 2024

Photoshop hasn't had an HSB colour mode for a long time (there were plugins), so it is now a mathematical representation/subset of RGB – and RGB results depend on the ICC profile assigned to the image.

 

The closest that I could get in sRGB was as per the attached image:

 

 

Using color samplers and the info panel, with the adjustment layer parameters:

 

H: +15

S: +87

L: -16

 

木原雄大
Participating Frequently
January 15, 2024

Thank you.
So, does that mean that currently there is no way to calculate to find how much to change?

木原雄大
Participating Frequently
January 16, 2024
quote

Is there any way I can do this while the color mode is RGB?

What exactly is »this«? 

Could you please post screenshots (including all pertinent Panels) to illustrate the exact process and how which element is supposed to influence which other element/s? 


Sorry.
Is there any way to calculate and control the light changes numerically using an adjustment layer while the color mode is RGB?