A woman with a sleek black bob haircut wearing a plunging red dress, posed against a matching red gradient background.
  • How to Add a Colored Background to a Portrait

  • Aaron Nace
    by Aaron Nace
    November 24, 2016
  • Add to
    favorites

Download Assets

This tutorial includes 1 PDF guide. Downloads are free with a PHLEARN account.

  • Download the sample files from every free tutorial on PHLEARN
  • New free tutorials published every week
  • One free account: sign up once, then download anything
Download

Free PDF Guide · 4 Pages

This Tutorial as a Step-by-Step PDF

The guide walks through selecting the background with the Magic Wand Tool and Shift-click, Select > Inverse, cleaning fringing in Select and Mask with the view On Black and the Refine Edge Brush, adding Layer > New Fill Layer > Solid Color, and a Hue/Saturation vignette softened with Gaussian Blur. Keep it next to your keyboard.

Download the PDF Guide · 0.4 MB

description

Cut the subject out, drop a Solid Color fill layer behind them, and the client can have the same portrait in as many background colors as they like. The part that sells it is the vignette: a Hue/Saturation layer with Lightness and Saturation pulled down, masked out of the center with an elliptical selection and then blurred heavily so the falloff reads as studio light rather than a hard ring.

woman in a red dress before background color change in Photoshop
woman in a red dress with background color changed in Photoshop
AfterBefore

Add a Colored Background to a Photo [Complete Tutorial]

Swapping a portrait’s background for a clean, solid color is one of the fastest ways to give a client multiple versions of the same shoot: a red background for a holiday image, blue for something more neutral, all from a single edit. In this tutorial we’ll cut a subject out of a simple background, drop in a solid color fill, and add a subtle vignette so the new background reads as natural rather than obviously flat.

Cutting Out Your Subject with the Magic Wand Tool

If your subject sits on a fairly simple, even-toned background, the Magic Wand Tool makes the initial selection quick. Click on the background to select it, then hold Shift and click any remaining background areas the first click missed, including the gaps inside the arms and the areas at the top of the frame. Keep in mind that a higher Tolerance setting selects a wider range of similar tones, which can help or hurt depending on how much variation is in your background. If your subject is on a busier, more complex background, the Magic Wand alone won’t cut it cleanly; in that case, the Pen Tool is a better tool for a precise cutout.

Inverting the Selection

Once your background selection looks clean, go to Select > Inverse. This flips the active selection from the background to your subject, since it’s your subject you actually want to isolate and mask going forward.

Refining the Edge with Select and Mask

With any selection tool active, click the Select and Mask button in the options bar; if you do not see it, go to Select > Select and Mask. In older Photoshop versions it is called Refine Edge or Refine Selection and works in much the same way. Set the View to On Black to check your selection’s edge quality clearly against a solid background.

Removing Fringing with the Refine Edge Brush

Areas like hair often keep a thin white outline from the original background, known as fringing. Select the Refine Edge Brush Tool inside the Select and Mask dialog, click starting from inside your subject, and paint outward over any edge that still shows this white fringe. Run the brush around the shirt, shoulders, and hairline as needed; each pass noticeably cleans up the edge quality without you needing a perfect original selection.

Loading the Selection as a Layer Mask

Once your selection and edge quality look good, click OK to exit Select and Mask, this only confirms the selection itself, nothing is cut out yet. Click the layer mask icon at the bottom of the Layers panel to load that selection as a mask, cleanly separating your subject from its original background.

Adding a Solid Color Background

Go to Layer > New Fill Layer > Solid Color and choose whatever color you’d like behind your subject. Drag this new fill layer beneath your subject’s layer in the Layers panel so it appears behind them rather than covering them up.

Adding a Vignette for Realism

A perfectly flat, uniform background color can look artificial compared to real studio lighting, which typically falls off slightly toward the edges of the frame. Add a Hue/Saturation adjustment layer (Layer > New Adjustment Layer > Hue/Saturation) and lower both Lightness and Saturation somewhat, this darkens and mutes the color, simulating a vignette effect.

Masking the Vignette to Just the Edges

This darkening currently affects the whole background, so use the Elliptical Marquee Tool to draw a selection covering the majority of the central area you want to keep untouched. Click the adjustment layer’s mask and fill that selection with black (Edit > Fill > Black), which hides the darkening effect in the center while leaving it visible around the edges.

Softening the Vignette with Gaussian Blur

A hard-edged selection like this creates an obvious, unnatural boundary between the darkened edge and the untouched center. Go to Filter > Blur > Gaussian Blur and increase the radius until the transition looks smooth and gradual rather than sharply defined. This single step is what turns an artificial-looking mask edge into a realistic, gently falling-off vignette.

Changing the Background Color Later

One of the biggest advantages of this method is how easy it is to revisit the color choice after the fact. Double-click the solid color fill layer’s thumbnail at any time to open the color picker and choose something entirely different. You can also hover directly over your photo with the eyedropper active in that same color picker to sample a color straight from the image itself, letting the new background pull from tones already present in the photo for a more cohesive look. Since the vignette and mask are on separate layers built independently of the color choice, changing colors takes seconds and never requires redoing your cutout or your vignette work.

Why This Approach Works

This technique works because it separates three decisions that are easy to conflate into one messy step: cutting the subject out, choosing a background color, and making that background look believable. Using Select and Mask to clean up fringing before committing to a layer mask means your cutout edge quality doesn’t depend on getting the original selection perfect on the first try. Building the vignette on its own masked adjustment layer, rather than baking it into the solid color fill directly, is what lets you swap colors freely afterward without ever having to rebuild the realism-adding details from scratch.

Final Thoughts

Swapping in a colored background is a genuinely fast edit once your subject is cleanly cut out: a solid color fill layer, a subtle vignette built from a darkened, masked, and blurred adjustment layer, and you’re done. Because every part of this setup stays independently editable, you can hand a client multiple color variations of the same portrait in minutes rather than redoing the whole edit for each option.

Quick Reference: Keys, Menus and Settings

  • Select the backgroundMagic Wand, Shift-click to add areas; Tolerance sets how much it picks
  • Flip to the subjectSelect > Inverse
  • Clean the edgeSelect and Mask, View: On Black, Refine Edge Brush from inside the subject outward
  • Cut outOK, then the layer mask icon in the Layers panel
  • New backgroundLayer > New Fill Layer > Solid Color, drag it below the subject
  • VignetteHue/Saturation layer: lower Lightness and Saturation; Elliptical Marquee, Edit > Fill Black on the mask, Filter > Blur > Gaussian Blur
  • Change the colorDouble-click the Solid Color thumbnail; click the photo to sample a color

No AI, no generative credits.

Page 1 of the free How to Add a Colored Background to a Portrait PDF guide

Free Downloads

Take the Guide With You

Get the PDF guide with every step, from the Magic Wand cutout and Select and Mask to the solid color fill and the soft background vignette. Free with a PHLEARN account.

Colored Portrait Backgrounds: Common Questions

What’s the quickest way to select a plain background?

Click it with the Magic Wand tool, then hold Shift and click any spots it missed, like the gaps inside the arms. A higher Tolerance selects more.

What if my background is busy?

The Magic Wand won’t cut it cleanly. Use the Pen tool for a more precise cutout.

Why do I invert the selection?

The Magic Wand selects the background, but you want to mask the subject. Select > Inverse flips the selection onto her.

Where is Select and Mask?

It’s a button in the options bar while a selection tool is active, or under the Select menu. Older versions call it Refine Edge.

How do I get rid of the white outline around the hair?

In Select and Mask, set the View to Black, pick the Refine Edge Brush and paint from inside the subject out over the white edge. That outline is called fringing.

I clicked OK in Select and Mask and nothing was cut out. Why?

OK only finishes the selection. Click the layer mask icon at the bottom of the Layers panel to cut the subject out.

How do I add the colored background?

Go to Layer > New Fill Layer > Solid Color, pick a color and drag the fill layer below your subject.

Why does the new background look flat?

Real backdrops get a little darker toward the edges. Add a Hue/Saturation layer with lower Lightness and Saturation, fill an Elliptical Marquee selection with black on its mask, then soften it with Filter > Blur > Gaussian Blur.

Can I change the color later?

Yes. Double-click the Solid Color layer’s thumbnail and pick a new color, or click in the photo with the eyedropper to borrow a color from the image.

Is there a free download?

Yes, with a free PHLEARN account. You get 1 PDF guide with the cutout, color fill and vignette steps.

Master Photoshop, Lightroom and Photography

Join PHLEARN PRO for $12.99 a month, or $99.99 a year (save 36%). Cancel anytime, with a 30-day money-back guarantee.

As featured in
  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel