How To Change Background Color in Photoshop (Complete Process)

Show Shortcuts for
Text size
Appearance

Your choices stick across every tutorial on this device.

You can change background color in Photoshop without damaging the original photo by using a Solid Color Fill layer.

Change background color in Photoshop using a non-destructive Solid Color Fill layer, so you can swap in any color without damaging your original photo.

No matter your skill level, you’ll be able to follow along and apply this powerful technique to your photos.

If your image already has a plain white or light gray background, a faster trick works too: see Recolor a White Background in Photoshop: Fast Trick.

Key Takeaways

  • Once it’s set up, you can change background color in Photoshop again anytime by double-clicking the Solid Color Fill layer.
  • Inverting the Layer Mask is what moves the color from the subject onto the background instead.
  • Setting the fill layer’s blending mode to Multiply keeps the original shadows and floor visible under the new color.
  • A Levels adjustment inside the same group gives you five points of brightness control, more than a single Hue/Saturation slider.
  • Hair edges usually need their own pass in Select and Mask, separate from the rest of the selection.

What You Will Learn

  • How to isolate a subject with the Quick Selection tool and Select Subject
  • How to refine tricky edges, including hair, in Select and Mask
  • How to build a non-destructive Solid Color Fill layer that only affects the background
  • How to group your color layers so one mask controls the whole effect
  • How to add a Levels adjustment for full brightness control over the new color

Requirements

Before you start

Practice Files

Download the image used in this tutorial and follow along step by step.

Change Background Color in Photoshop: Keyboard Shortcuts

ActionWindowsmacOS
Subtract from selection (Quick Selection tool)AltOption
DeselectCtrl DCommand D
Toggle Quick Mask modeQQ
Zoom toolZZ
Brush toolBB
Decrease or increase brush size[ or ][ or ]
Swap foreground and background colorsXX
Invert the layer maskCtrl ICommand I
Fill with the background colorCtrl BackspaceCommand Backspace

Tutorial Image

Click here to download the image of the woman on Roller Skates.

Make a Selection

Isolate the subject from the background by creating a selection.

If you’d rather remove the background completely instead of recoloring it, see our guide on how to remove a background in Photoshop.

One of the most useful ways of creating a selection is by using the Quick Selection tool.

Quick Selection tool picked from the toolbar to isolate the subject

Click-and-drag the tool all over the subject for Photoshop to automatically find the edges. 

Tip: Hold Alt (Windows) or Option (macOS) as you click-and-drag on selected areas to deselect them.

Make a Selection Using Machine Learning Technology

If you’re using the current version of Photoshop, you can easily create a selection of the subject with a few clicks!

Choose Select > Subject and let Photoshop’s built-in AI identify the subject in the image and create a selection out of it.

Select Subject command automatically finding the woman on roller skates

Refine the Selection with Quick Mask Mode

Once your selection is set, press Q (Windows) or Q (macOS) to enter Quick Mask mode, which applies a red overlay over areas that are not selected.

You can then select the Brush tool from the Toolbar and set the Foreground color to white (#ffffff) and paint to add to the selection.

On the contrary, you can set the Foreground color to black(#000000) and paint to subtract from the selection.

Quick Mask mode showing the red overlay across the unselected areas

Tip: Press X (Windows) or X (macOS) to swap the Background and Foreground colors.

When you’re happy with the mask, press Q (Windows) or Q (macOS) to exit Quick Mask mode.

Refine the Selection Edges with Select and Mask

With the Quick Selection tool active, head to the Options bar and click on the Select and Mask button to continue fine-tuning the mask.

For a deeper look at every tool in that panel, see our guide to the Select and Mask workspace in Photoshop.

Select and Mask button sitting in the Options bar of the Quick Selection tool

Set the View option as Black & White so you can easily see the contrast between the background and the subject.

View mode set to Black and White so the mask contrast is easy to judge

Then, use the Global Refinements’ Smooth and Contrast slider to improve the selection’s edges.

Smooth and Contrast sliders under Global Refinements cleaning up the selection edge

Refine the hair with Select and Mask

The Global Refinements adjustments weren’t applied to the hair since you can achieve a better result using a different technique.

Go back to Select and Mask.

Returning to the Select and Mask workspace to handle the hair separately

Switch the View to Overlay.

View switched over to Overlay before working on the hair

Use the Refine Edge tool to brush over the edges of the hair. You may notice how it only reveals the individual hair strands but masks out the background.

Refine Edge tool brushed along the hairline to pull out single strands

Change the background with a Solid Color Fill

Click on the New Adjustment Layer icon at the bottom of the Layers panel and select Solid Color.

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

On the Color Picker window, you can select any color you want for the background.

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

Then, press OK to exit the window. 

Select the Layer Mask thumbnail and press CtrlI (Windows) or CommandI (macOS) to invert the effect. This applies the Solid Color Fill layer on the background instead of the subject.

You can achieve the same effect if you go to the Properties panel and click on the Invert button.

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

With the color finally applied to the background, you may lose the background’s shadows and texture.

To change that, set the Blending Mode of the layer to Multiply as it retains the original shadows of the image.

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

The floor is affected by the blue Solid Color Fill layer, unmask by using the Rectangular Marquee tool and selecting the area of the floor.

Rectangular Marquee tool selecting the floor area that should stay untouched

With the Layer Mask thumbnail selected, fill the active selection with black. 

One way of doing it is choosing Edit > Fill. 

Fill command opened from the Edit menu to fill the active selection

Then, set the Contents > Black.

Fill dialog with Contents set to Black for painting into the layer mask

The second way of doing it is by setting black(#000000) as your Background color and pressing CtrlBackspace (Windows) or CommandBackspace (macOS). 

Black set as the background color so the mask can be filled with a keyboard shortcut

With that part of the image unmasked, you can deselect by pressing CtrlD (Windows) or CommandD (macOS).

Take this time to fine-tune elements in the mask such as the shoelaces, hair strands, or small parts of the garment. Use the Brush tool and paint with black(#000000) to unmask them.

Brush loaded with black to unmask the shoelaces and stray hair strands

Reversely, paint with white(#ffffff) to reveal the Solid Color Fill layer. 

Painting with white in the mask to bring the color fill layer back

Why Not Use the Hue/Saturation Adjustment Layer Instead?

Unfortunately, using the Hue/Saturation only allows you to control one slider to control the color in the image.

For more on that adjustment layer, see our guide to the Hue and Saturation adjustment layer in Photoshop.

In contrast, the Solid Color Fill layer enables you to change the color on a wide array by double-clicking the layer thumbnail to bring out the Color Picker window.

Create a Group to contain all the color change layers

Go to the Layers panel and click on the New Group icon to and name the group as “Color Change.”

New group created in the Layers panel and named Color Change

Then, drag the Solid Color Fill layer towards the group.

For the Color Change group to have the same Layer Mask as the Color Fill layer has, click-and-drag the Layer Mask thumbnail onto the group and then release your mouse.

This will separate the two, and you need this so that only one Layer Mask controls that group’s contents.

Create a Levels adjustment to control the color brightness

Click on the New Adjustment Layer icon and select Levels.

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

Then, click-and-drag the Solid Color Fill layer above the Levels layer.

Solid Color fill layer dragged above the Levels layer in the stack

Right-click on the Levels layer and select Delete Layer Mask. 

Delete Layer Mask selected from the right click menu on the Levels layer

With the Levels adjustment layer, you gain full control of the luminosity in the image using 5 points.

If you want to make the shadows darker but retain the color, create a New Layer outside the group. Use the Eyedropper tool to click on the current background color, and set it as the Foreground color.

Eyedropper sampling the current background color to use as the foreground color

Then, select the Brush tool and paint on the New Layer to use it as a reference.

Go back Levels adjustment layer and on the Properties panel, make the shadows darker by dragging the middle point to the right.

Levels properties with the middle point pulled right to deepen the shadows

This should make your painted color on the New Layer stand in contrast with the darker background color. 

Drag the white point to the left to brighten the background color until it matches the new layer’s sampled color. That helps you retain the same color but with darker shadows. 

Then, delete the New Layer as it is now unnecessary. 

Dodge and Burn the Mask to refine hair edges

Hair is the most difficult to mask, and it becomes evident when you switch to a darker color, and it reveals the mask’s inconsistency.

On the Toolbar, use the Dodge tool to paint parts of the hair to make the background color come through. 

Dodge tool used on the mask so the background color shows through the hair
Roller skater on the swapped background color after the hair mask was refined
Change background color in Photoshop: the finished result with a new background color

Whenever you want to change the background color again, just double-click the Color Fill layer thumbnail. That brings out the Color Picker window so you can select a new color!

Double clicking the Color Fill thumbnail reopens the Color Picker to swap colors

And that’s how you can change the background color in Photoshop in manner that is efficient and realistic!

Frequently Asked Questions

How do I change the background color in Photoshop?

Select the subject with the Quick Selection tool or Select Subject, then refine the edges in Select and Mask. Add a Solid Color Fill layer and invert its mask so the color lands on the background instead of the subject.

Why use a Solid Color Fill layer instead of Hue/Saturation?

A Solid Color Fill layer lets you pick any color directly from the Color Picker. The Hue/Saturation adjustment layer only gives you one slider to shift the existing color.

How do I keep the shadows on the background after changing its color?

Set the Solid Color Fill layer’s blending mode to Multiply. It blends the new color with the layer below, so the original shadows and floor stay visible.

Why does the color affect my subject instead of the background?

A new Solid Color Fill layer’s mask starts out selecting your subject, not the background. Click the Layer Mask thumbnail and press Ctrl I (Windows) or Command I (macOS) to invert it, or click Invert in the Properties panel.

How do I fix hair edges when changing a background color?

Go back into Select and Mask, switch the view to Overlay, and brush over just the hair with the Refine Edge tool. Handling hair separately from the rest of the selection gives a cleaner result.

What does grouping the color layers do?

Put your Solid Color Fill and Levels layers in one group, with a single mask on the group itself. That way, one mask controls every layer that affects the background color.

Can I change the background color again later?

Yes. Double-click the Solid Color Fill layer’s thumbnail at any time to reopen the Color Picker and choose a new color.

What Photoshop version do I need for this technique?

This works in Photoshop 2020 (version 21.0) and every version since, including the current release. Older versions like Photoshop CS6 can still make the selection manually with the Quick Selection tool.

Conclusion

You can change background color in Photoshop with a single Solid Color Fill layer, one inverted mask, and a Multiply blend to keep the shadows.

Group the color layers together and add a Levels adjustment whenever you want more control over the brightness than one Hue/Saturation slider gives you.

Watch the full video above for every step at full speed, and comment on the video with the color you used.

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

Final Image

Drag the slider to see before and after

After: How To Change Background Color in Photoshop (Complete Process)
Before: How To Change Background Color in Photoshop (Complete Process)
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