Skip to main content
Inspiring
July 26, 2021
Answered

Question about Color blend mode

  • July 26, 2021
  • 2 replies
  • 1134 views

According to Adobe

 

"Color mode creates a result color with the luminance of the base color and the hue and saturation of the blend color. This preserves the gray levels in the image and is useful for coloring monochrome images and for tinting color images."

 

This is exactly what I needed!  I have a grayscale (R=G=B) step table in Adobe RGB mode having 20 equal steps from K = 0 to K = 100. I want to colorize the step table but I do not want the grayscale (K) values to change. But if I add a Color Fill layer in Color Mode, the K values are NOT preserved.  Instead of 

 

0%   5%   10%   15%   20% ... 95%   100%

 

The corresponding eyedropper readings are

 

0%   4%   8%   12%   14% ... 93%   100%

 

Furthermore,  the Hue and Saturation of the result color is NOT the same as those of the blend color.  For a blend color of (120,100,100), the Hue and Saturation of the result color is

 

(120,0)   (120,12)   (120,24) ...

 

I suspect that Adobe's definition refers to the HSL model, rather than HSB, but I have no way of verifying that since the eyedropper doesn't offer HSL.

 

Since my results contradict everything in Adobe's definition, I must be doing something really wrong. 

 

Photoshop file attached.

 

 

 

 

This topic has been closed for replies.
Correct answer J Isner

I'm going to try to answer my own question. I just read Gimp's description of Color mode:

 

"This mode combines the foreground hue and saturation with the background lightness. Lightness ... is always a bit less bright than value. The expression for this blending mode is

 

R=[h(F),s(F),l(B)]

 

where h(F) and s(F) are the hue and saturation of the foreground, and l(B) is the lightness of the background.

------

 

Value is what Adobe calls Brightness in HSB, which some people write as HSV.  HSL is a different system from HSB/HSV, and the L of HSL is "always a bit less bright than value." In other words, gray levels are NOT preserved when when you colorize using Color mode. They are made "a little less bright." So instead of  the expected brightness values of

 

B = 0   5   10   15  20 ...

 

I get

 

B = 0   4   8   12   14

 

which seems quite a bit less bright to me! Anyway, mystery solved.  I can say that Color Mode does NOT preserve gray levels. It makes them "a little less bright."

 

I think I need a correction to scale the values back up from L to B.

2 replies

Kukurykus
Legend
July 26, 2021
D Fosse
Community Expert
Community Expert
July 26, 2021

RGB and grayscale numbers are relative to color space. K values are not fixed, but depend on the tone response curve of the grayscale profile used. In this case they will depend on whatever you have set as working gray.

 

It will be visually unchanged - which is exactly why the numbers change. With the same numbers, the visual appearance would change.

 

If you need stable numbers you should be working in Lab, which (unlike RGB) completely separates the luminance component from the color component.

J IsnerAuthor
Inspiring
July 26, 2021

The document profile is Adobe RGB. The RGB working space is Adobe RGB and the Gray working space is Gray Gamma 2.2. 

 

When I'm working on this document, the eyedropper grayscale (K) readings have a fixed relationship to the Brightness values of HSB, specifically: B = 1 - K. For example,

 

I know that if the gray working space and the RGB space have different gammas, this relationship does not hold, although the appearance does not change.

 

My goal is to colorize a grayscale step table in such a way that the gray levels (Adobe's terminology) in the original table do not change.  The Hue and Sat may change, but the brightness is constrained to go in equal steps from 100% to 0% in steps of 5% (exactly opposite to the original grayscale values, which went from 0% to 100% in steps of 5%). That's all there is to it. This has nothing to do with human perception of tone. It's strictly a requirement that gray levels be preserved when the step table is colorized.

 

This is what I THOUGHT Color blend mode was supposed to do. If you read Adobe's definition, how could you come to any other conclusion?

J IsnerAuthorCorrect answer
Inspiring
July 26, 2021

I'm going to try to answer my own question. I just read Gimp's description of Color mode:

 

"This mode combines the foreground hue and saturation with the background lightness. Lightness ... is always a bit less bright than value. The expression for this blending mode is

 

R=[h(F),s(F),l(B)]

 

where h(F) and s(F) are the hue and saturation of the foreground, and l(B) is the lightness of the background.

------

 

Value is what Adobe calls Brightness in HSB, which some people write as HSV.  HSL is a different system from HSB/HSV, and the L of HSL is "always a bit less bright than value." In other words, gray levels are NOT preserved when when you colorize using Color mode. They are made "a little less bright." So instead of  the expected brightness values of

 

B = 0   5   10   15  20 ...

 

I get

 

B = 0   4   8   12   14

 

which seems quite a bit less bright to me! Anyway, mystery solved.  I can say that Color Mode does NOT preserve gray levels. It makes them "a little less bright."

 

I think I need a correction to scale the values back up from L to B.