Sub topic 10
The Component Group: Hue, Saturation, Color and Luminosity
This chapter assumes you know how to work with layers, add layer masks and adjustment layers, and tell brightness, hue and saturation apart. The Component group is the last of the six blend mode groups. It contains four modes: Hue, Saturation, Color and Luminosity. Each one splits a pixel into components and combines some components from the blend layer with the rest from the base.
Why this group behaves differently
The modes in the other groups work on each color channel (red, green, blue) separately, using formulas like the ones in the earlier chapter on blend math. The Component modes do not. They first convert each pixel to a model that separates tone from color. They then take some of those components from the blend layer and the rest from the base layer.
The three components are:
- Hue is the color family, such as red, green or blue-violet.
- Saturation is the intensity or purity of the color. A saturation of zero is a neutral gray.
- Luminosity is the perceived brightness of the pixel, independent of its color.
Each of the four modes recombines these components in a different way.
| Mode | Hue comes from | Saturation comes from | Luminosity comes from |
|---|---|---|---|
| Hue | Blend layer | Base | Base |
| Saturation | Base | Blend layer | Base |
| Color | Blend layer | Blend layer | Base |
| Luminosity | Base | Base | Blend layer |
Color and Luminosity are exact opposites. Color keeps the base's brightness and takes the blend layer's color. Luminosity keeps the base's color and takes the blend layer's brightness. If you apply Color with layer A over layer B, you get the same pixels as applying Luminosity with layer B over layer A.
Color mode
Color is the mode you will use most from this group. It applies the hue and saturation of the blend layer while the base keeps its own brightness detail. The shading, texture and tonal structure of the photo stay intact. Only the color changes.
Typical uses:
- Colorizing a black and white photo. Create an empty layer above the photo, set it to Color, and paint with a soft brush. Because the base keeps its luminosity, the shadows and highlights stay in place under the paint.
- Tinting or toning. Fill a layer with a single color, set it to Color, and lower the opacity for a color wash.
- Recoloring an object. Paint over a shirt, a wall or a car on a Color layer, or use a Solid Color fill layer with a mask. The folds and reflections remain.
- Color grading. Use a Color layer with a gradient to add different tints to the sky and the ground.
Color mode has a limit. It keeps the base's brightness, but that is the brightness of the base's original color, not the new one. A saturated yellow looks brighter than a saturated blue at the same numerical lightness. If you paint blue over a bright yellow object, the result can look too light or flat. You can correct this with a Curves or Levels adjustment clipped to the layer.
It also does little at the extremes. Pure black and pure white have no room for color. Painting on pure white with Color mode shows nothing, so a blown-out highlight cannot be colored this way. The same holds in pure black.
The next example shows the mathematical idea, assuming the Rec. 709 luma weights as an approximation of perceived brightness. Photoshop's exact internal formula differs in detail, but the principle is the same.
def luma(rgb):
r, g, b = rgb
return 0.2126 * r + 0.7152 * g + 0.0722 * b
def color_mode(base, blend):
"""Give the blend's color to the base while keeping the base's luma."""
shift = luma(base) - luma(blend)
result = [c + shift for c in blend]
return [min(1.0, max(0.0, c)) for c in result]
def luminosity_mode(base, blend):
return color_mode(blend, base)
gray_pixel = (0.5, 0.5, 0.5)
orange = (1.0, 0.5, 0.0)
print(luma(gray_pixel)) # 0.5
print(color_mode(gray_pixel, orange))
print(luminosity_mode(gray_pixel, orange))The clamp in the last line of color_mode reflects what happens in the software. When the shifted color goes outside the range of 0 to 1, the color is clipped. Strongly saturated colors on very light or very dark pixels therefore lose some of their saturation.
Luminosity mode
Luminosity applies only the brightness of the blend layer and keeps the colors of the base. Its main purpose is to apply a tonal change without a color change.
Many adjustments shift color as a side effect. A strong Curves adjustment on the RGB composite, a Sharpen filter, or a high-contrast Levels change all move the three channels by different amounts, which can cause color casts and saturation changes. Setting the adjustment layer's blend mode to Luminosity limits it to tone.
Typical uses:
- Contrast curves without color shift. Set a Curves adjustment layer to Luminosity. The S-curve adds contrast, and the saturation stays where it was.
- Sharpening without color fringes. Put a High Pass or Unsharp Mask result on a layer set to Luminosity. Halos around edges are then confined to brightness and do not show as colored edges.
- Dodging and burning. Painting with a black or white soft brush on a Luminosity layer changes the brightness without altering color. This is an alternative to the Overlay or Soft Light method from the Contrast chapter, and it avoids the saturation boost those modes cause.
- Matching tonal structure. Place a different version of the image, such as a black and white conversion, in Luminosity mode over a color version.
Luminosity is also useful for diagnosing a color problem. Putting a copy of the image in Luminosity mode over a flat gray layer shows only the tonal structure and lets you judge the contrast with no distraction from color.
Hue mode
Hue mode takes only the hue of the blend layer. The base keeps its saturation and its brightness. The result is a change in color family without a change in intensity or tone.
Two features limit what Hue can do:
- It cannot colorize gray. A gray pixel has zero saturation, so there is no color for the new hue to apply to. Hue on a black and white image does nothing, which is different from Color mode.
- It keeps the saturation of the base. A dull base stays dull, even if the blend layer is vivid.
Hue is mainly used for shifting one color to another while preserving the original strength. A Hue/Saturation adjustment or a Selective Color adjustment is usually easier for this, because it can target a color range. Hue mode is better when you want to paint a replacement hue by hand, or when you are checking a color change that you will make elsewhere.
Saturation mode
Saturation mode takes the saturation of the blend layer and keeps the hue and brightness of the base. A gray blend layer gives zero saturation, so it removes all color from the base. A more colorful blend layer gives more saturation to the base.
The blend layer's own hue is ignored, and only its saturation level counts. This leads to a useful trick: painting a soft brush in Saturation mode with a vivid color increases saturation where you paint, and painting with a gray decreases it.
Typical uses:
- Local desaturation. Paint with a gray or black brush to tone down a distracting color, such as a bright red bag in the background.
- Selective vibrance. Paint with a saturated color to boost the color of one flower or one part of the face.
- Reducing skin redness. Use a low opacity Saturation layer with a gray brush on blotchy areas.
Saturation changes can easily go too far. Pushing saturation on a highly saturated area causes channel clipping, where one channel reaches its maximum and detail disappears. Keep the opacity low and watch the histogram.
Neutral colors and masks in this group
The neutral color idea from earlier in the tutorial applies here in a limited form:
- Saturation mode has no neutral color for the blend layer. A gray gives zero saturation, so it desaturates the base. It does not leave it untouched.
- Color and Hue have no neutral color. Any color applied changes the result, and only a transparent pixel leaves the base unchanged.
- Luminosity leaves the base unchanged only if the blend layer has the same brightness as the base.
For this reason, you should control Component layers with masks and opacity, not neutral fills. Paint on a transparent layer or add a layer mask. Lower the opacity to tune the strength.
Fill and Opacity behave the same for these modes. Each scales the effect of the layer, so you can use either one.
Combining modes for a standard workflow
A common retouching stack uses two Component layers together:
- A Curves adjustment layer in Luminosity mode for contrast.
- A Hue/Saturation or Vibrance adjustment, or a painted layer in Saturation mode, for local color control.
- A painted layer in Color mode for any tint or color correction.
Because each layer changes only one component, you can adjust them separately without them fighting each other. If the color looks wrong, you do not need to touch the tonal layer. If the contrast looks wrong, the color layers stay as they were.
Common problems
| Problem | Cause | Fix |
|---|---|---|
| Color layer shows no effect on highlights or shadows | Pure white and pure black cannot carry color | Lower the exposure of the base with a clipped Curves layer, or paint on a layer in Normal mode instead |
| Recolored object looks too bright or too dark | Color mode keeps the base brightness, which does not match the new color | Add a clipped Curves or Levels layer to correct the tone |
| Hue mode on a gray area does nothing | Gray has no saturation | Use Color mode, which also applies saturation |
| Colored fringes after sharpening | Sharpening changed all three channels | Set the sharpening layer to Luminosity |
| Skin looks plastic after a Saturation edit | Too much desaturation or too high opacity | Lower the opacity and use a soft, large brush |
Exercise
You have a photo of a green jacket and you want to make it red while keeping every fold and shadow. Which mode do you pick, which one do you avoid, and why?
Show answer
Use Color mode, painting red over the jacket on a separate layer (or a Solid Color fill layer with a mask). Color takes both hue and saturation from the blend layer and keeps the base's luminosity, so the folds and shadows remain. Hue mode would take only the hue, so the jacket would keep the saturation of the original green and may look dull or inconsistent. Normal mode would cover the folds with a flat red and lose the detail.
Exercise
A Curves adjustment that adds contrast also makes the colors look too saturated. How do you keep the contrast and remove the color shift?
Show answer
Change the blend mode of the Curves adjustment layer from Normal to Luminosity. The layer then affects only the brightness of the pixels and leaves their hue and saturation as they were.
Exercise
You apply a vivid blue layer in Saturation mode over a photo. The photo does not turn blue. Why?
Show answer
Saturation mode uses only the saturation of the blend layer. The blue hue is ignored, and the base keeps its own hue and brightness. The result is that the photo's colors become more saturated, but they do not change to blue.