How to Change Background Colors in Photoshop
Your choices stick across every tutorial on this device.
A Hue/Saturation adjustment layer is the cleanest way to change background colors in Photoshop.
It recolors the background without touching your subject, so you skip the rough edges, white halos, and endless mask cleanup that usually come with a color swap.
This tutorial covers the three techniques I use on movie and TV poster work. Recolor the background with Hue/Saturation, target a color range when the background color also shows up in clothing, and replace the color completely with a Solid Color Fill.
By the end, you will be able to cleanly swap any background color, keep blue jeans and blue eyes from changing when the background is blue, and fix the halos that appear around hair when the new color is dark.
Everything here works in Photoshop 2025 or the latest version.
Key Takeaways
- Select Subject builds the mask, but the Hue/Saturation adjustment layer does the color work. Colorize plus an inverted mask recolors only the background.
- Cloud processing returns a better automatic selection than your computer. Set it under Preferences > Image Processing before you click Select Subject.
- When the background color also appears in clothing or eyes, target the color range instead of masking the background, then paint the effect away from the areas that keep their color.
- Bright new colors hide mask imperfections. Dark ones reveal halos around hair. Test your mask against a dark color before calling it done.
- A Solid Color Fill layer set to Multiply keeps the original shadows and texture, and it works best over a bright or white background because Multiply leaves white pixels showing the pure color.
- None of this touches your pixels. Every technique is an adjustment or fill layer you can reopen and recolor later.
Table of contents
- What You’ll Learn
- What You Need
- Keyboard Shortcuts for Changing Background Colors
- Technique 1: Change Background Colors with Hue/Saturation
- Technique 2: Target the Color Instead of the Background
- Technique 3: Replace the Background Color with a Solid Color Fill
- Which Technique Should You Use?
- Frequently Asked Questions
- Change Background Colors in Photoshop Without the Mess
- Related Links
What You’ll Learn
- How to recolor a background with a Hue/Saturation adjustment layer and an inverted mask
- How to target a color range so the wall changes and the jeans do not
- How to replace a background color completely with a Solid Color Fill set to Multiply
- How to fix white halos around hair when the new color is dark
- How to pick the right technique for your image
What You Need
Before you start
- Photoshop 2025 or the latest version
- A photo with a clearly defined subject. A portrait against a plain background works best.
Keyboard Shortcuts for Changing Background Colors
| Action | Windows | macOS |
|---|---|---|
| Open Preferences | Ctrl K | Command K |
| Undo | Ctrl Z | Command Z |
| Enable the Zoom Tool | Z | Z |
| Enable the Brush Tool | B | B |
| Resize the brush | Left and right bracket keys | Left and right bracket keys |
| Swap foreground and background colors | X | X |
| Invert a layer mask | Ctrl I | Command I |
| Fill with the foreground color | Alt Backspace | Option Delete |
| Deselect | Ctrl D | Command D |
| Fit the image on screen | Ctrl 0 | Command 0 |
Technique 1: Change Background Colors with Hue/Saturation
This is the fastest way to change background colors in Photoshop when the original is a light or neutral tone, such as gray or beige.

You might think, let’s just target the gray. But that would also grab the brighter areas of her skin. The smart move is to mask out the background from the start.
Step 1: Select the Subject
Click the Select Subject button in the Contextual Task Bar. Photoshop uses machine learning to generate an excellent automatic selection.

Before you click it, press Ctrl K (Windows) or Command K (macOS) to open Preferences, go to Image Processing, and set the dropdown to Cloud. Photoshop sends the image to Adobe servers and returns a better selection than your computer can produce on its own.

Step 2: Add a Hue/Saturation Adjustment Layer
With the selection active, click the New Adjustment Layer icon and choose Hue/Saturation. This layer is where all the magic happens, and Photoshop automatically builds a layer mask from your selection.

Step 3: Colorize and Invert the Mask
In the Properties panel, check Colorize.

The color lands on your subject, which is the opposite of what you want. Click the Layer Mask thumbnail, then click Invert in the Properties panel. Now the effect targets the background instead of the subject.

Step 4: Check the Mask Before You Pick a Color
Before making any color adjustments, make sure the mask actually works. Press Z to enable the Zoom Tool and inspect the edges. In this image, there is a gap between her finger and her neck that the selection missed.
Press B to enable the Brush Tool, and click the Layer Mask thumbnail. Painting with white reveals the effect, and painting with black hides it. Tap X to swap your foreground and background colors, resize the brush with the bracket keys, and fill in the missed areas.

When you are done, double-click the Hand Tool to fit the image to your screen.
Step 5: Pick the New Background Color
Click the adjustment layer thumbnail, then drag the Hue slider to choose the color, the Saturation slider to control its intensity, and the Lightness slider to make it darker or brighter.
Tip: Keep an eye on the swatch in the top left of the Properties panel. It shows you the exact color you are applying to the background.
Step 6: Fix Halos on Dark Background Colors
This technique works great when the new color is bright. Bright backgrounds hide small mask imperfections. Push the color darker, and white halos appear around her hair and body.
Zoom in with Z. Those flyaway hairs are easy to fix: with the Layer Mask active and white as your foreground color, paint over the strands and the halos to darken them into the new background.
Painting around the hairline can also swallow some of the original hair highlights. To bring them back, shrink the brush with the left bracket key, tap X to switch to black, and paint over the strands where the highlights should show. Press Ctrl 0 (Windows) or Command 0 (macOS) to fit the image to screen and check the result.

Technique 2: Target the Color Instead of the Background
Use this method when the background is a strong color, like blue, that also appears in other parts of the image, such as clothing.

This image looks harder than the first one. A blue wall with dark shadows, blue jeans, and a floor reflecting the blue from the background. It is actually easier, because instead of masking the background, we target the color itself.
Step 1: Add the Adjustment from the Taskbar
Click Adjust Colors in the Contextual Task Bar. Photoshop creates a Hue/Saturation adjustment layer and generates swatches of the most prominent colors in your image.

Step 2: Desaturate the Background Color
Click the blue swatch, then drag Saturation down to 0. Everything blue turns gray, including her jeans. That is not what we want, but it shows exactly what the adjustment is targeting, and we will fix the jeans in a moment.

Step 3: Refine the Color Range
Scroll down in the Properties panel to the range sliders and make sure every blue pixel in the image is covered.

The top gradient shows the original color range. The bottom gradient shows the result after your adjustment. If any blue survives on the bottom gradient, blue still survives somewhere in the image.

The inner vertical sliders define the colors that change 100 percent. The outer triangular sliders create a smooth falloff that blends the effect gradually into the surrounding colors.

Expand or shift the sliders until every unwanted blue is neutralized, without spilling into colors you want to keep.
Step 4: Bring the Color Back Where It Belongs
Enable the Object Selection Tool and hover over her jeans. When they highlight in pink, click to select them.

Click the Layer Mask thumbnail. With black as your foreground color, press Alt Backspace (Windows) or Option Delete (macOS) to fill the selection with black. The blue returns to her jeans instantly. Press Ctrl D (Windows) or Command D (macOS) to deselect.

Note: In older versions of Photoshop, use the Quick Selection Tool and drag over the jeans instead.
One change that is easy to miss: the adjustment also desaturates her blue eyes. Press B for the Brush Tool and paint with black over her face so her eyes keep their color.

Step 5: Choose the New Color
Click the adjustment layer thumbnail, raise the Saturation back up, and pick any color with the Hue slider. Warm yellows, greens, neutral grays, anything goes.

Tip: The Lightness slider can push the wall all the way to white or black. A darker gray often looks the most realistic because it preserves the original shadows.
Technique 3: Replace the Background Color with a Solid Color Fill
The first two techniques recolor what is already there. A Solid Color Fill layer replaces the background color outright, which is the technique to reach for when you need an exact color, like a brand value from a Color Picker hex code.
Step 1: Select and Mask the Subject
Start with Select Subject, exactly like Technique 1. This method leans hardest on the quality of the mask, so refine it in the Select and Mask workspace before moving on. For the complete selection and hair-refinement process, follow my background removal guide. The same three-step formula applies here.
Step 2: Add the Solid Color Fill and Invert the Mask
With the selection active, click the New Adjustment Layer icon at the bottom of the Layers panel and choose Solid Color.

Pick any color in the Color Picker and press OK. You can always change it later by double-clicking the fill layer thumbnail.

The color covers your subject at first. Click the Layer Mask thumbnail and press Ctrl I (Windows) or Command I (macOS) to invert it, or use the Invert button in the Properties panel.

Step 3: Set the Blending Mode to Multiply
The new background looks flat because the fill covered the original shadows and texture. Set the fill layer’s Blending Mode to Multiply to bring them back.

Here is why it works. Multiply multiplies the fill color by the pixels underneath. Anything multiplied by black stays black, so the shadows survive. Anything multiplied by white shows the fill color unchanged. That is also why this technique works best when the original background is bright or white.
Note: If the fill tints areas that should keep their original color, like a floor, select them, click the Layer Mask thumbnail, and fill the selection with black using Alt Backspace (Windows) or Option Delete (macOS).
Step 4: Control the Brightness with Levels
To darken or brighten the background without shifting its hue, add a Levels adjustment layer below the fill.

The clean way to organize this: create a New Group named Color Change, place both layers inside it, and drag the fill layer’s Layer Mask onto the group. One mask now controls everything in the group, and the Levels layer needs no mask of its own.
Drag the middle point right to deepen the shadows, and the white point left to brighten the color back up. You keep the same hue with darker, richer shadows.

Step 5: Refine Hair with Dodge and Burn
Hair is the hardest part of any mask, and a darker background color makes every inconsistency visible.
Click the group’s Layer Mask, then use the Dodge Tool to paint over the hair edges. Dodging brightens the mask, allowing the background color to show through the strands. If you go too far, the Burn Tool darkens the mask and brings the hair back.

Which Technique Should You Use?
All three ways to change background colors in Photoshop produce clean, professional results. The right one depends on the image in front of you.
| Technique | Best for | Watch out for |
|---|---|---|
| Hue/Saturation with an inverted mask | Bright or neutral backgrounds you want to recolor fast | Dark target colors reveal halos around hair |
| Target the color range | A background color that repeats in clothing or eyes, and complex scenes with shadows and reflections | Bring the color back in areas that should keep it |
| Solid Color Fill on Multiply | Exact colors, like brand values, plus full brightness control | Works best over bright or white originals and needs the cleanest mask |
Frequently Asked Questions
Click Select Subject in the Contextual Task Bar, then add a Hue/Saturation adjustment layer. Photoshop turns your selection into a layer mask. Check Colorize, invert the mask, and the color change lands only on the background.
Bright colors hide small mask imperfections, and dark colors reveal them. Paint on the layer mask with white over the flyaway strands to darken them into the new color, then switch to black with a smaller brush to bring back the original hair highlights.
Use a Solid Color Fill layer. Enter the hex value in the Color Picker, invert the layer mask so the fill targets the background, and set the Blending Mode to Multiply to keep the original shadows.
Multiply multiplies the fill color by the pixels underneath. Black stays black, so shadows survive, and white shows the pure fill color. That keeps the background texture realistic, and it is why the technique works best over a bright or white original background.
Yes. Click Adjust Colors in the Contextual Task Bar, choose the background color’s swatch, and use the range sliders to target that color across the image. You only need the mask to protect areas that share the color, like clothing or eyes.
Select the jeans with the Object Selection Tool, click the layer mask, and fill the selection with black using Alt Backspace (Windows) or Option Delete (macOS). For eyes, paint over them with a black brush on the same mask.
Yes. All three techniques are non-destructive. Reopen the Hue/Saturation properties and move the sliders, or double-click the Solid Color Fill thumbnail to pick a new color. Nothing in the original image is erased.
Change Background Colors in Photoshop Without the Mess
Recolor with Hue/Saturation when the background is bright. Target the color range when the background color repeats elsewhere in the image. Replace it with a Solid Color Fill on Multiply when you need an exact color.
Every one of these is an adjustment or fill layer, so nothing is permanent. Reopen the layer, move a slider or pick a new color, and the background changes again.
Watch the full tutorial above to see every step in real time.
Selections and Masking Mastery
Complete course includes 2.5 hours of step-by-step lessons, 6 structured modules, downloadable practice files, and custom Photoshop brushes. Everything you need to master selections and masks in one place.
Keep going
Want to master every generative and color AI tool in Photoshop? My Photoshop AI Mastery course covers all of it.
For a solid foundation with the selections and masking used in this tutorial, take a look at Selections and Masking Mastery.
And if you are new here, subscribe on YouTube for a new Photoshop tutorial every week.







