Sub topic 7
Hue/Saturation: targeting specific color ranges
This chapter assumes you can create a Hue/Saturation adjustment layer, move the Hue, Saturation, and Lightness sliders, and read the Properties panel. You should also know that adjustment layers are non-destructive. The previous chapter covered the Master channel, which shifts every color at once. Here you will work on one color family at a time.
Why target a range
The Master setting treats every pixel the same. That is rarely what a photo needs. A common request is "make the sky deeper blue without turning the skin orange," or "tone down the green grass but keep the red jacket." Both are range problems. You want to change pixels that share a color, wherever they sit in the frame.
This differs from a layer mask. A mask limits an adjustment by position, which is where in the image it applies. A color range limits it by color, which is what the pixel looks like. The two tools solve different problems, and you will often combine them.
The color range menu and the two color bars
In the Properties panel for Hue/Saturation, the dropdown at the top reads Master by default. It also offers six ranges: Reds, Yellows, Greens, Cyans, Blues, and Magentas. Choosing one switches the three sliders so they affect only that range.
At the bottom of the panel are two color bars.
- The upper bar shows the original hue order. It does not change.
- The lower bar shows the result of your Hue slider. When you drag Hue, this bar slides against the upper one, so you can see which color each original hue becomes.
When you pick a range other than Master, four small markers appear between the bars. They define the range.
| Marker | Position | What it controls |
|---|---|---|
| Inner pair of vertical bars | Center band | Colors that receive the full adjustment |
| Outer triangles | Outside the center band | Where the effect fades to zero |
| Area between a bar and its triangle | Falloff | A gradual blend, so the edit has no hard edge |
| Whole span from triangle to triangle | Total reach | Every hue that is affected at all |
The falloff is what keeps targeted edits from looking cut out. Pixels in the center band get the full change. Pixels in the falloff get a partial change that shrinks toward the triangle. Pixels beyond the triangles get none.
How a range edit works
A range is a window on the 360-degree hue wheel. The default windows are roughly 30 degrees wide at the center, with falloff on each side. The model below shows the logic. The weight is 1 inside the center band, drops linearly to 0 across the falloff, and stays 0 outside.
def range_weight(hue, center_start, center_end, falloff):
"""Return how strongly a pixel at `hue` (0-360) is affected by a range.
The range is centered between center_start and center_end (degrees).
`falloff` is the width of the fade on each side, in degrees.
"""
def wrap_distance(a, b):
d = abs(a - b) % 360
return min(d, 360 - d)
if center_start <= hue <= center_end:
return 1.0
nearest_edge = min(
wrap_distance(hue, center_start),
wrap_distance(hue, center_end),
)
if nearest_edge >= falloff:
return 0.0
return 1.0 - nearest_edge / falloff
def shift_hue(hue, hue_slider, weight):
"""Shift a hue by the slider amount, scaled by the range weight."""
return (hue + hue_slider * weight) % 360
# A "Blues" range: full effect from 210 to 250 degrees, 30-degree falloff.
for h in (180, 195, 220, 260, 280):
w = range_weight(h, 210, 250, 30)
print(h, round(w, 2), round(shift_hue(h, -20, w), 1))Running this prints the weight and shifted hue for five sample hues. A pixel at 220 degrees moves the full 20 degrees. A pixel at 195 degrees sits halfway through the falloff, so it moves 10 degrees. A pixel at 280 degrees is 30 degrees from the center band, which equals the falloff width, so it does not move at all.
Photoshop's real implementation differs in detail, since it also scales Saturation and Lightness by the same weight and uses its own falloff curve. The model is still good for predicting behavior: edits are strongest in the middle of a range and fade smoothly at the edges.
Picking a range with the on-image tool
You do not have to guess which range holds a color. The panel has a targeted adjustment tool, the small hand icon with arrows at the left of the Properties panel.
- Click the targeted adjustment tool.
- Click the color you want to change in the image. Photoshop switches the dropdown to the matching range and sets the markers around the sampled hue.
- Drag left or right on the image to change Saturation. Hold Ctrl (Windows) or Cmd (Mac) and drag to change Hue instead.
Use this tool to find the range, then fine-tune with the sliders. Sampling on a single pixel can place the markers around a noisy value. If the result looks patchy, set the sampling with the Eyedropper to a larger area, such as 5 by 5 average, before you click.
Adjusting the range markers
The default range is a starting point. To widen or narrow it, drag the markers.
- Drag the center bars to change which hues get the full effect.
- Drag a triangle outward to lengthen the falloff and soften the edit. Drag it inward to make the edit more selective.
- Drag the middle area between the bars to slide the whole range along the hue wheel without changing its size.
A narrow center with a long falloff is a good default for natural subjects. A wide center with a short falloff behaves more like a selection, and it is more likely to show banding or hard edges.
You can also use the eyedroppers next to the targeted tool. The plain eyedropper sets the range from a clicked color. The plus eyedropper adds to the range. The minus eyedropper removes from it. Holding Shift while clicking with the first eyedropper does the same as the plus version.
A worked example: deepening a sky
Suppose a landscape has a pale, slightly cyan sky and a green meadow, and you want the sky to be a richer blue.
- Add a Hue/Saturation adjustment layer.
- Select the targeted adjustment tool and click the sky. The dropdown moves to Cyans or Blues, depending on the exact sky color.
- Set Hue to about +10 if the sky reads cyan and you want it bluer. If the dropdown went to Blues and the sky is already blue, leave Hue alone.
- Raise Saturation by 20 to 30.
- Lower Lightness by 5 to 15. Saturated blue that stays bright often looks electric and artificial.
- Check the meadow. The Cyans range reaches toward green at its low edge, so the grass may have shifted. If it did, drag the left triangle of the range inward until the grass returns to normal.
Watch both bars while you do this. If the lower bar shows the sky color sliding well past its neighbor on the upper bar, the hue has changed too much and the edit will look unnatural.
Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Skin tones shift when you edit Reds or Yellows | Skin sits at the border of those ranges | Narrow the range, or paint out the skin on the layer's mask |
| Hard-edged patches or banding in smooth gradients | Falloff is too short | Drag the triangles outward |
| Saturation boost makes detail vanish in one color | The channel is clipping at full saturation | Lower Saturation and add contrast with Curves |
| The change has no visible effect | The targeted range holds few pixels | Re-sample with the targeted tool, or check the range with Master at +100 Saturation temporarily |
| Hue shift looks wrong in a dim area | Low-saturation pixels have an unstable hue | Raise Saturation slightly first, or mask the area |
Be careful with one more case: neutral tones. Grays, whites, and blacks have almost no saturation, so their hue is nearly undefined. A range edit rarely touches them, which is usually what you want. But slightly tinted grays can be pulled into a range and take on a visible color. If a gray wall looks tinted after a Reds edit, mask the wall or narrow the range.
A diagnostic trick
To see exactly what a range covers, temporarily push Saturation to +100 in that range and Lightness to 0. Everything inside the range becomes vivid, and the rest stays as it was. Adjust the markers until only the intended areas jump out, then reset the sliders and make the real edit.
Combining a range edit with a mask
A range edit works across the whole canvas, so the same blue in a jacket changes along with the sky. When that happens, you have two options. You can narrow the range until the jacket falls outside it, or you can keep the range wide and paint black on the layer mask over the jacket. Use the mask when the colors are truly identical, because no range setting can separate them.
Summary of decisions
- Use Master for a global color change, such as a warmer or cooler overall look.
- Use a single range when one color family needs to change independently.
- Use a mask when the same color appears in places you want to leave alone.
- Use both when a range is close but not exact.
Exercise
A photo of a red car in front of an orange sunset needs the car to be more vivid, but raising Saturation in the Reds range also changes the sunset. What are two ways to fix this, and when would you choose each?
Show answer
First, narrow the Reds range by dragging the center bars and triangles so the orange hues fall in the falloff or outside it. This works when the car and sky differ enough in hue to be separated. Second, keep the range as it is and paint black on the adjustment layer's mask over the sky. Choose the mask when the car and the sunset share nearly identical hues, because no range setting can separate colors that are the same.
Exercise
You set Hue to -20 in the Blues range. A pixel's hue is 195 degrees, which lies halfway through a 30-degree falloff on the low side of the range. By how many degrees does Photoshop's model, as described in this chapter, shift that pixel?
Show answer
Half of the slider amount, which is 10 degrees. The weight at the midpoint of a linear falloff is 0.5, so the shift is -20 times 0.5, or -10 degrees. The pixel moves from 195 to 185 degrees.