Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Question about Color blend mode

Enthusiast ,
Jul 25, 2021 Jul 25, 2021

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.

 

 

 

 

TOPICS
Windows
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jul 26, 2021 Jul 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 differe

...
Translate
Adobe
Community Expert ,
Jul 25, 2021 Jul 25, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 26, 2021 Jul 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,

 

Brightness and grayscale K.jpg

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 26, 2021 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2021 Jul 27, 2021

I'd still say do it in Lab. You can always convert back to Adobe RGB when finished.

 

HSB/HSL are not defined color spaces and numbers are relative to everything else. They are just generic models to use within a given color space. Both depend on a formula for brightness that is undefined in terms of color spaces - just a ratio of R:G:B.

 

Lab has the special property that the luminance and color components are completely separate. IOW, when you change one the other is unaffected. That can never be true with RGB, where color is in fact defined by brightness in each color channel.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 27, 2021 Jul 27, 2021
LATEST

What value would you specify as the solid color, such that when applied over the step table in Color mode, each cell of the result has the a and b components of the solid color and the Lightness of the underlying cell? I played around with this in Lab and couldn't get anywhere close to what I need.  For example, if done correctly, the white cell should be white, the black cell should be black, and the intermediate cells should be intermediate shades of green.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 26, 2021 Jul 26, 2021
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines