The fastest way to change a background color
Open your image in Photoshop and use the Select Subject tool to isolate your main object, then invert the selection so you are working with the background only. Fill that selection with your new color using the bucket fill tool or the Edit menu. This takes about two minutes and works best when your background is already fairly uniform — a sky, a wall, or a solid color.
If your background is complex or blends into your subject, you will need to manually draw a selection boundary first. Photoshop offers several selection tools for this: the lasso (freehand drawing), the magic wand (click to select similar colors), or the quick selection brush (paint to select). Each one trades speed for precision depending on what you are working with.
The reason you select before filling is that it protects your main subject. Without a selection, filling the entire layer changes everything, including the parts you want to keep.
Key Takeaways
- Select Subject followed by Select Inverse lets you work on only the background, protecting your main object from accidental changes.
- The magic wand tool is fastest for backgrounds that are one or two solid colors, but the lasso gives you more control over irregular edges.
- You must set your foreground color before filling — click the foreground color square in the toolbox to open the color picker.
- If your first attempt includes parts of your subject, undo it and try a different selection tool or adjust your selection boundary before filling.
Using Select Subject for straightforward backgrounds
Open your image and go to the Select menu at the top. Choose Select Subject. Photoshop analyzes your image and draws a selection boundary around the main object — usually a person, product, or animal. This selection is rarely perfect, but it gives you a starting point in seconds.
Once the selection is active (you will see marching ants, the animated dotted line, around your subject), go back to Select and choose Inverse. This flips the selection so that everything except your subject is now selected — which is exactly what you want to change.
Now your background is selected and your subject is protected. Any color you explore will only affect the background. If the selection boundary caught part of your subject or missed part of your background, you can adjust it before filling, but for clean backgrounds this method usually works without tweaking.
Choosing and explore your new color
Before you fill, you need to set the color you want. Look at the left side of your screen in the toolbox — you will see two overlapping squares, one on top of the other. The top square is your foreground color, the bottom is your background color. Click the foreground color square to open the color picker.
The color picker window lets you choose by clicking anywhere in the color field, or by typing a specific color code if you have one. HTML color codes (like #FF5733) work here, as do RGB values. Once you have the color you want, click OK to close the picker. The foreground color square now shows your choice.
With your background still selected and your foreground color set, go to Edit at the top menu and choose Fill. A small window appears asking what you want to fill with — select Foreground Color and click OK. Your background when ready changes to the new color.
Manual selection for complex backgrounds
If Select Subject does not work well — for instance, if your subject blends into the background or if the background is textured — you will need to draw your own selection boundary. The magic wand tool is the fastest option for backgrounds that are mostly one color. Click it in the toolbox (it looks like a wand), then click anywhere on the background. Photoshop selects all connected pixels of similar color.
If the magic wand selects too much or too little, adjust the Tolerance setting at the top of the screen before clicking again. A higher number (like 50) selects a wider range of similar colors; a lower number (like 10) is more strict. You can also hold Shift and click to add more areas to your selection, or hold Alt and click to subtract areas you do not want.
For backgrounds with irregular edges or multiple colors, the lasso tool lets you draw freehand around the edge of your subject. Click and drag to draw, and when you close the loop by clicking your starting point, the area outside your drawn line becomes selected. This is slower but gives you complete control. The quick selection brush sits between these two — paint over the area you want selected and Photoshop expands the selection intelligently as you paint.
Fixing selection mistakes before you fill
After you make a selection, take a moment to check it. Zoom in if needed by scrolling your mouse wheel or using View > Zoom. Look for places where the selection boundary cuts into your subject or misses part of the background. Small mistakes become obvious once you fill, so it is worth fixing them first.
To add to your selection, hold Shift and use your selection tool again — click with the magic wand, paint with the quick selection brush, or draw with the lasso. To remove part of your selection, hold Alt and do the same thing. You can also go to Select > Modify > Expand or Contract to grow or shrink your entire selection by a few pixels, which is useful if the boundary is slightly off all around.
Once your selection looks right, fill it with your foreground color using Edit > Fill as described above. If you make a mistake after filling, press Ctrl+Z (Windows) or Command+Z (Mac) to undo and try again.
Blending the new background with your subject
A hard edge between your subject and the new background often looks unnatural, especially if you selected manually. To soften it, go to Select > Modify > Feather before you fill. Enter a pixel value — usually 2 to 5 pixels for a subtle blend, or 10 to 20 for a more dramatic fade. This blurs the selection boundary slightly so the color transition is gradual instead of sharp.
Another option is to use a layer mask instead of filling directly. Create a new layer, fill it with your color, then add a layer mask and paint on the mask to hide or show parts of the colored layer. This is more advanced but gives you the ability to adjust the blend after the fact. For most backgrounds, though, feathering your selection before filling is enough to look polished.
Frequently Asked Questions
What if I want a gradient background instead of a solid color?
Select your background the same way, then use the gradient tool instead of the bucket fill. Click the gradient tool in the toolbox, set your foreground and background colors to the two colors you want, then drag across your selection. The direction and length of your drag determine how the gradient flows.
Can I change the background color without selecting?
Not safely. Without a selection, any fill tool changes your entire layer, including your subject. Selections take an extra 30 seconds but protect your main object. If you are working with layers, you can also delete the background layer and create a new one beneath your subject, which avoids selection altogether.
Why does my new color look different than the one I picked?
Your monitor's color profile and brightness settings affect how colors display. If the color is close but not exact, try adjusting it slightly in the color picker. You can also use the eyedropper tool to sample a color from elsewhere in your image if you want it to match something already there.
What if the magic wand selects my subject instead of the background?
Go to Select > Inverse to flip the selection. If that still is not right, undo and try a different tool — the lasso or quick selection brush often work better when the subject and background have similar colors.
Do I need to flatten my image before changing the background?
No. You can change the background on any layer. If your image has multiple layers, make sure the layer with the background you want to change is selected in the Layers panel before you fill.