Sub topic 8
The Contrast group: Overlay, Soft Light and Hard Light
This chapter assumes you can work with layers, add layer masks and adjustment layers, and tell brightness, hue and saturation apart. It also assumes you have read the earlier chapters on Multiply (Darken group) and Screen (Lighten group), because the Contrast group is built from those two.
What the Contrast group does
The Contrast group sorts tones into two halves. Light areas get lighter and dark areas get darker, and 50% gray does nothing. The result is more contrast, and the amount depends on how far the blend layer is from 50% gray.
Photoshop lists seven modes in this group:
- Overlay
- Soft Light
- Hard Light
- Vivid Light
- Linear Light
- Pin Light
- Hard Mix
This chapter covers the first three in depth. They are the ones you will use most. The last four are stronger variants, and the final section describes them briefly.
The neutral color: 50% gray
Every mode in this group has the same neutral color, 50% gray (RGB 128, 128, 128, or 0.5 in the 0 to 1 scale used in the formulas below). A layer filled with 50% gray set to Overlay, Soft Light or Hard Light changes nothing. Any lighter or darker mark on that layer then pushes the image brighter or darker.
This is the basis of two standard non-destructive techniques:
- Dodge and burn layer. Make a new layer, fill it with 50% gray, set the mode to Overlay or Soft Light, and paint on it with a soft black or white brush at low opacity. White lightens, black darkens, and the original pixels stay untouched.
- Texture layer. Put a grayscale texture (paper, concrete, film grain) above your image and set it to Overlay or Soft Light. The mid-gray parts of the texture vanish, so only its lighter and darker detail shows.
The math
The formulas below work on one channel at a time, with values from 0 (black) to 1 (white). Photoshop applies them to the red, green and blue channels separately.
def multiply(base, blend):
return base * blend
def screen(base, blend):
return 1 - (1 - base) * (1 - blend)
def overlay(base, blend):
if base < 0.5:
return 2 * base * blend
return 1 - 2 * (1 - base) * (1 - blend)
def hard_light(base, blend):
return overlay(blend, base)
print(multiply(0.5, 0.5)) # 0.25 (darker)
print(screen(0.5, 0.5)) # 0.75 (lighter)
print(overlay(0.5, 0.5)) # 0.5 (a 50% gray blend leaves the base value unchanged)Read overlay as a decision made by the base. If the base pixel is darker than half, the formula is a doubled Multiply, so the pixel gets darker. If the base is lighter than half, the formula is a doubled Screen, so the pixel gets lighter. The two branches meet at 0.5 so the curve has no jump.
hard_light calls overlay with the arguments swapped. The blend layer now makes the decision. If the blend pixel is darker than half, the result is a Multiply. If it is lighter than half, the result is a Screen.
The consequence is easy to remember:
| Mode | Which layer decides Multiply or Screen | Typical strength |
|---|---|---|
| Overlay | The base (the image below) | Medium |
| Hard Light | The blend layer (the layer on top) | Strong |
| Soft Light | The blend layer, with a gentler curve | Subtle |
Working a number through
Take a base value of 0.25 (a dark tone) and a blend value of 0.75 (a light tone).
- Overlay: the base is below 0.5, so the result is 2 × 0.25 × 0.75 = 0.375. The pixel is still dark, and the light blend lifted it a little.
- Hard Light: the blend is above 0.5, so the result is a Screen branch: 1 − 2 × (1 − 0.75) × (1 − 0.25) = 1 − 2 × 0.25 × 0.75 = 0.625. The pixel is now light.
Same two numbers, different answers, because a different layer made the decision. This is why swapping the layer order changes the look of Overlay but gives you Hard Light when you swap the layers with the same blend setting applied the other way round.
base, blend = 0.25, 0.75
print(overlay(base, blend)) # 0.375
print(hard_light(base, blend)) # 0.625
print(overlay(blend, base)) # 0.625, the same as hard_light(base, blend)The last line shows the identity directly: Hard Light on a layer pair gives the same result as Overlay with the two layers exchanged.
Overlay
Overlay keeps the base layer's highlights and shadows and applies the blend layer's tone and color on top. Because the base decides, the darkest and brightest areas of the image are protected. Pure black (0) stays black and pure white (1) stays white, whatever the blend layer contains.
Use Overlay when you want contrast without clipping:
- Adding punch to a flat photo by duplicating it and setting the copy to Overlay.
- Applying a texture or grain.
- Tinting an image with a color layer while keeping the original contrast.
A duplicated image on Overlay boosts contrast and saturation together, because the contrast applies to each channel. Strongly colored areas can become too saturated. If that happens, lower the opacity or desaturate the duplicate first.
Soft Light
Soft Light behaves like Overlay with the strength turned down. It uses a smooth curve instead of the doubled Multiply and Screen, so it never produces harsh jumps. Pure black on a Soft Light layer darkens the base, but it does not reach pure black. Pure white lightens the base, but it does not reach pure white.
That gentleness makes Soft Light the usual choice for:
- Dodge and burn on skin, where hard transitions look like blotches.
- Subtle vignettes.
- Light color grading with a gradient or solid color.
If Overlay looks too strong, try Soft Light before you reduce opacity. If Soft Light looks too weak, switch to Overlay.
Hard Light
Hard Light applies strong contrast, as if a harsh spotlight were shining on the base. Because the blend layer decides, a black or white area on the blend layer produces a strong result even where the base is a mid-tone. Hard Light has an aggressive look, and it can clip shadows and highlights.
Use Hard Light when:
- You want a stylized, high-contrast look.
- You are placing a light pattern or texture over an image and want it to dominate.
- You are combining two images and the top image should control the result.
Because the top layer controls the outcome, Hard Light behaves differently from Overlay when you drag the same layer around: the detail in the top layer is very visible.
Opacity and Fill with Contrast modes
Both sliders weaken the effect, and for these three modes they behave almost the same way. In the Contrast group, Opacity and Fill give very similar results on a plain pixel layer. They differ when the layer has layer styles such as a drop shadow or stroke, because Fill leaves the styles at full strength. The earlier chapter on Opacity versus Fill covers this in detail. For a dodge and burn layer, use Opacity.
The other four modes
These are stronger relatives of Overlay. Use them rarely, and expect to lower the opacity.
| Mode | What it does | Typical use |
|---|---|---|
| Vivid Light | Applies Color Burn or Color Dodge depending on the blend layer. Very strong. | Dramatic color effects |
| Linear Light | Applies Linear Burn or Linear Dodge depending on the blend layer. Very strong. | High-contrast stylization |
| Pin Light | Replaces pixels with the blend color if the blend is lighter or darker than the base by enough. | Special effects |
| Hard Mix | Reduces every channel to 0 or 1, leaving only a few pure colors. | Posterized graphic looks |
Hard Mix is a special case. With Fill reduced, it can produce interesting posterized results. At 100% it gives up to eight flat colors.
Common problems with the Contrast group
- Blown highlights or crushed shadows. Hard Light or a stacked set of Overlay layers can push values to pure white or black. Reduce opacity, switch to Soft Light, or use Blend If to protect the extremes.
- Colors become too saturated. Contrast applied to each channel raises saturation as a side effect. Put a Hue/Saturation adjustment in the stack, or switch the blend layer to Luminosity mode when you only want tone changes.
- The gray layer changes the image. Check that the fill is exactly 50% gray (128, 128, 128). Another gray, or a layer set to a different mode, will shift the image.
- No change at all. Make sure the layer's mode is not Normal, and that the neutral gray has been painted over with black or white.
- Halos around edges. Soft brushes at high opacity can leave visible bands. Use a low flow and build up gradually.
Summary
- The Contrast group makes lights lighter and darks darker. The neutral color is 50% gray.
- Overlay lets the base decide between Multiply and Screen. Hard Light lets the blend layer decide. Soft Light is a gentler version of Overlay.
- Use Overlay for general contrast and texture, Soft Light for subtle work on skin and light grading, and Hard Light for strong effects.
- Protect the extremes with lower opacity, Soft Light or Blend If.
Exercise
A base pixel has the value 0.8 and a blend pixel has the value 0.3. What are the results of Overlay and Hard Light, and which one is lighter?
Show answer
Overlay: the base 0.8 is not below 0.5, so the result is 1 - 2 (1 - 0.8) (1 - 0.3) = 1 - 2 0.2 0.7 = 0.72. Hard Light: the blend 0.3 is below 0.5, so it is a Multiply branch, and the result is 2 0.3 0.8 = 0.48. Overlay is lighter (0.72 against 0.48), because the light base chose Screen while the dark blend chose Multiply.
Exercise
You filled a new layer with 50% gray, set it to Soft Light, and painted with white at 100% opacity, yet the area is not pure white. Why, and which mode would get closer to pure white?
Show answer
Soft Light uses a gentle curve, so even a white blend only lightens the base and never reaches pure white. Overlay would get stronger results, and Hard Light would go further still.
Exercise
Explain why Hard Light on layer A over layer B gives the same result as Overlay with layer B over layer A.
Show answer
Overlay lets the base decide whether to Multiply or Screen, and Hard Light lets the blend layer decide. Exchanging the layers swaps which one is the base and which is the blend, so both modes use the same layer to make the decision and apply the same formula. In code, hard_light(base, blend) is defined as overlay(blend, base).