How to Change Background Colors in Photoshop

Show Shortcuts for
Text size
Appearance

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.

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

ActionWindowsmacOS
Open PreferencesCtrl KCommand K
UndoCtrl ZCommand Z
Enable the Zoom ToolZZ
Enable the Brush ToolBB
Resize the brushLeft and right bracket keysLeft and right bracket keys
Swap foreground and background colorsXX
Invert a layer maskCtrl ICommand I
Fill with the foreground colorAlt BackspaceOption Delete
DeselectCtrl DCommand D
Fit the image on screenCtrl 0Command 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.

Portrait of a smiling young woman with her hand on her chin, wearing a yellow sleeveless top, against a grey background. Ideal for Photoshop subject selection tutorials.

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.

Close-up of a person's torso in a yellow top. An orange rectangular highlight indicates the 'Select Subject' button in Adobe Photoshop's context bar, useful for quick selections.

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.

Screenshot of Adobe Photoshop Preferences panel, showing 'Image Processing' settings. An orange highlight around 'Cloud (Detailed results)' indicates the option for high-quality subject selection and background removal processing.

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.

Screenshot of Adobe Photoshop Layers panel with a right-click menu open. 'Hue/Saturation...' is highlighted in blue, demonstrating how to access color adjustment layers.

Step 3: Colorize and Invert the Mask

In the Properties panel, check Colorize.

Adobe Photoshop workspace showing a smiling woman's portrait. The Properties panel displays Hue/Saturation adjustment options. An orange rectangle highlights the 'Colorize' checkbox, used for adding a color tint to an image.

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.

Adobe Photoshop interface showing a woman's portrait. The Properties panel for a layer mask is visible. An orange highlight indicates the 'Invert' button within the mask properties, useful for inverting selections.

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.

Close-up of a smiling woman's face in Adobe Photoshop showing white halos along her hair. A white circle indicates the brush cursor on her cheek. The Layers panel shows a Hue/Saturation adjustment layer with an active layer mask, ready for precise color adjustments.

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.

Before and After comparison of a smiling woman's portrait against a dark blue background. The 'Before' image shows white halo surrounding her hair. The 'After' image shows no more halos and improvement in hair quality.

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.

A young woman smiling, sitting on a wooden floor leaning against a teal blue wall, wearing a yellow top and ripped blue jeans. Suitable for image manipulation tutorials.

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.

Screenshot of Adobe Photoshop showing a woman sitting on a floor with a blue background, highlighting the 'Adjust Colors' button for selective color correction.

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.

Adobe Photoshop interface displaying a woman on a grey background, with a Hue/Saturation adjustment layer applied, showing the Saturation slider set to -100 for desaturation of blue tones.

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.

Close-up of the Hue/Saturation properties panel in Photoshop, showing the 'Before - After' color spectrum and an active selection for a specific color range from 160° to 190°.

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.

Detailed view of the 'Adjust selected color range' slider in Adobe Photoshop's Hue/Saturation panel, set to 160° / 190°.

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.

Close-up of the Hue/Saturation color range slider in Photoshop, showing an adjustment from 160° to 180° for fine-tuning color selection.

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.

Photoshop screenshot demonstrating the Object Selection Tool being used to select the woman's jeans, outlined in pink, for targeted color adjustments.

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.

Adobe Photoshop interface with a woman in blue jeans on a grey background, showing a layer mask applied to the Hue/Saturation adjustment layer, with the jeans area selected.

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.

Screenshot of Adobe Photoshop showing a woman with desaturated blue jeans, and the Layers panel highlighting a mask on the Hue/Saturation adjustment layer to isolate the effect.

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.

Adobe Photoshop screenshot showing a woman with blue jeans against a vibrant green background, demonstrating a Hue/Saturation adjustment applied to change the original background color.

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.

Solid Color chosen from the New Adjustment Layer menu at the base of the Layers panel

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

Color Picker open to choose the new background color for the photo

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.

Invert button in the Properties panel flipping the mask onto the background

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.

Color fill layer set to Multiply so the original shadows stay in the background

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.

Levels picked from the New Adjustment Layer icon to steer the color brightness

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.

Levels properties with the middle point pulled right to deepen the 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.

Dodge tool used on the mask so the background color shows through the hair

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.

TechniqueBest forWatch out for
Hue/Saturation with an inverted maskBright or neutral backgrounds you want to recolor fastDark target colors reveal halos around hair
Target the color rangeA background color that repeats in clothing or eyes, and complex scenes with shadows and reflectionsBring the color back in areas that should keep it
Solid Color Fill on MultiplyExact colors, like brand values, plus full brightness controlWorks best over bright or white originals and needs the cleanest mask

Frequently Asked Questions

How do I change the background color in Photoshop without affecting the subject?

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.

Why does my new background color show white halos around hair?

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.

How do I change a background to an exact color like a brand hex value?

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.

Why set the Solid Color Fill layer to Multiply?

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.

Can I change a background color without making a selection?

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.

How do I keep blue jeans or blue eyes from changing with a blue background?

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.

Can I change the background color again later?

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.

Pro Training

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.

View the Course

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.

Jesús Ramirez

About the author

Jesús Ramirez

Jesús Ramirez is a graphic designer and the founder of the Photoshop Training Channel, which he started in 2012 and has grown past two million YouTube subscribers. He has taught at Adobe MAX, Adobe Summit, and Photoshop World, teaches courses for CreativeLive and Pluralsight, and was one of five artists chosen for Adobe Stock's Make a Masterpiece campaign. His Photoshop templates shipped inside Photoshop CC 2018.

More about Jesús Ramirez

Similar Posts