The fastest way to change a background color
Open your image in Photoshop and select the background you want to change. The quickest method is the Select Subject tool: go to Select menu, choose Select Subject, and Photoshop will automatically detect and select your main subject. Then go to Select menu again and choose Inverse — this flips the selection so the background is selected instead of your subject.
Once the background is selected, go to Edit menu and choose Fill. A dialog box opens. In the Contents dropdown, choose Foreground Color (or Background Color, depending on which one you want to use). Click OK and your background fills with that solid color. If you want to change what color fills in, click the foreground color square in your toolbox first, pick a new color from the color picker, and then repeat the fill step.
This method works best when your subject has clear edges and contrasts with the background — a person against a plain wall, or an object on a straightforward backdrop. If your background is complex or your subject has wispy edges like hair, you will need a more precise selection method.
Key Takeaways
- Use Select Subject followed by Select Inverse to automatically select just the background, then fill it with Edit > Fill.
- Set your foreground color before filling by clicking the color square in the toolbox and choosing from the color picker.
- For backgrounds with soft edges or complex areas, use the Quick Selection tool or Refine Edge to get cleaner results.
- Layer masks let you change the background without permanently altering your original image, so you can undo or adjust later.
Using the Quick Selection tool for more control
If Select Subject does not capture your background cleanly, the Quick Selection tool gives you more control. Find it in the toolbox on the left side — it looks like a magic wand with a plus sign. Click and drag across the background you want to select. Photoshop paints a selection as you drag, and you can add to it by holding Shift and dragging again, or subtract from it by holding Alt (or Option on Mac) and dragging.
The Quick Selection tool works by detecting edges, so it often catches stray pixels or misses parts of the background. After you finish selecting, go to Select menu and choose Refine Edge. A panel opens showing your selection with options to smooth it, feather it (blur the edge slightly), or shift the edge inward or outward. These adjustments help the new background color blend naturally instead of looking cut out.
Once your selection looks right, fill it the same way: Edit > Fill, choose your color, and click OK. The advantage here is that you have more say in exactly what gets selected before you commit to the color change.
Protecting your original image with a layer mask
If you think you might want to change the background color again later, or undo this change entirely, use a layer mask instead of filling directly. A layer mask lets you hide parts of a layer without deleting them — you can always paint the mask back or adjust it.
First, make your background selection the same way: Select Subject, then Select Inverse, or use Quick Selection. With the background selected, go to Layer menu and choose Layer Mask > Reveal Selection. Photoshop adds a white mask to your layer. Now create a new layer below your masked layer and fill it with your background color. Go to Layer menu, choose New, and pick New Layer. Drag this new layer below your original image layer in the Layers panel on the right. Select the new layer and fill it with your color using Edit > Fill.
Now you have your original image on top with a mask, and a solid color layer underneath. If you want to change the color later, just click the color layer and fill it with a different color. If you want to undo the whole thing, delete the color layer and the mask, and your original background is still there untouched.
Handling hair, fur, and soft edges
Subjects with soft edges — hair, fur, feathers, or translucent fabric — are harder to select cleanly because the edge blends into the background. The Quick Selection tool often leaves halos or misses wisps. For these images, use the Select and Mask workspace, which gives you specialized tools for difficult edges.
Make your initial selection with Quick Selection or Select Subject, then go to Select menu and choose Select and Mask. The workspace changes to show your image with the selection overlaid. On the right side, you will see a Refine Edge Brush tool — it looks like a brush icon. Use it to paint along the edge of your subject. Photoshop automatically detects the true edge of hair or fabric and adjusts your selection. You can also use the Shift Edge slider to move the selection boundary inward or outward, and the Feather slider to soften the edge.
When the selection looks right, click OK to explore it. Then fill your background layer as usual. The refined selection means the color change will look natural instead of leaving a visible line around your subject.
Using the Color Range tool for backgrounds of a single color
If your background is a single color — a white wall, a blue sky, a green screen — the Color Range tool is faster and more accurate than any selection brush. Go to Select menu and choose Color Range. Your cursor changes to an eyedropper. Click on the background color you want to select. Photoshop selects all pixels of that color throughout the image.
A dialog box shows a Fuzziness slider. Increase it if Photoshop is not catching all the background color (it is too strict), or decrease it if it is selecting parts of your subject too (it is too loose). When the preview looks right, click OK. Now your entire background of that color is selected, and you can fill it with Edit > Fill and a new color.
This method is especially useful for product photos shot against a plain backdrop, or portraits with a solid-color wall behind them. It is much faster than painting a selection by hand, and it catches every pixel of that color automatically.
Adjusting the color after you fill
If the color you chose does not look right after filling, you have options depending on how you made the change. If you filled directly on your original layer, go to Edit menu and choose Undo (or press Ctrl+Z on Windows, Command+Z on Mac) to go back and try a different color.
If you used a layer mask and a separate color layer, just click the color layer and go to Edit > Fill again with a new color. If you want to adjust the brightness or saturation of the color without changing it completely, select the color layer and go to Image menu, then Adjustments, and choose Hue/Saturation or Brightness/Contrast. Sliders let you tweak the color until it looks right.
You can also use Adjustment Layers for non-destructive color changes. Go to Layer menu, choose New Adjustment Layer, and pick Hue/Saturation or Color Balance. This adds an adjustment layer that affects only the layers below it, so you can experiment with different looks without permanently changing your color layer.
Blending the new background with your subject
Sometimes a new background color looks flat or unrealistic because it does not match the lighting of your subject. If your subject was lit from the left, a flat background color will look wrong. You can improve this by adding a subtle gradient or shadow to the new background.
Select your color layer and use the Gradient tool to paint a gradient across it — darker on one side, lighter on the other, matching the direction of light on your subject. Or use the Dodge and Burn tools to lighten and darken areas of the background manually. Keep the adjustments subtle so the background does not distract from your subject.
Another option is to lower the Opacity of your color layer slightly — instead of 100 percent, try 80 or 90 percent. This lets a tiny bit of the original background show through, which can make the transition feel more natural. Adjust the opacity slider in the Layers panel on the right side.
Frequently Asked Questions
Can I change the background color without selecting it first?
Not cleanly. Photoshop needs to know which pixels to change. If you fill without a selection, it fills the entire layer. Always make a selection first — even a rough one — so Photoshop knows to change only the background and not your subject.
What if my background has multiple colors or a pattern?
Use the Quick Selection tool or Select and Mask workspace to manually paint the selection. Color Range only works for a single color. For complex backgrounds, you may also consider the Clone tool or Content-Aware Fill to remove the background entirely before adding a new color, though that is more advanced.
Why does my new background look like it has a halo around the subject?
Your selection edge was not clean enough. Go back and use Select and Mask with the Refine Edge Brush to improve the selection along the subject's outline. Then undo the fill and fill again with the better selection. A feathered edge also helps blend the transition.
Can I change the background color to a gradient or pattern instead of a solid color?
Yes. After you select the background, go to Edit > Fill. In the Contents dropdown, choose Pattern instead of Foreground Color, then pick a pattern from the list. For a gradient, you will need to use the Gradient tool directly: select the background, choose the Gradient tool from the toolbox, pick a gradient, and drag across the background to explore it.
Does changing the background color work the same way on a JPEG as on a PNG?
The selection and fill process is identical. The difference is that a JPEG has no transparency, so if you delete the background instead of filling it, you get white. A PNG can have transparent areas. For background color changes, both file types work the same — select, then fill with your color.