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

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 답변
  • 1617 조회

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.

이 주제는 답변이 닫혔습니다.

1 답변

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?

c.pfaffenbichler
Community Expert
Community Expert
January 15, 2024

May I ask what the reason for your query is? 

 

Do you have to make such »numerical« edits at a high volume (or often)? 

What is the place of this step in your larger workflow? 

What is the sort of images you need to edit thusly (renderings, graphics, photographs, …)?