How to Select Areas by Color in Photoshop
In this article
To select areas by color in Adobe Photoshop, use the Color Range command (Select > Color Range) for the most control, or the Magic Wand tool for quick, single-click selections of similar tones. Both let you isolate a color range so you can adjust, mask, or delete just those pixels. The steps below work on Photoshop for Windows and macOS; menu labels can differ slightly by version and region.
What You'll Need
- Adobe Photoshop (any recent Creative Cloud version) on Windows or macOS. The desktop app is required; Photoshop on iPad and the free web version have limited selection tools.
- An open image with at least one distinct color area you want to isolate.
- A basic understanding of layers: it helps to duplicate your image layer (Ctrl+J on Windows, Cmd+J on Mac) before making destructive edits.
Step-by-Step
- Open your image in Photoshop and select the layer you want to work on in the Layers panel. If you plan to delete or recolor the selected area, duplicate the layer first so the original stays intact.
- Choose the selection method. For precise, adjustable color ranges, go to Select > Color Range. For a fast click-and-select of a flat color, choose the Magic Wand tool (W) from the toolbar. The Object Selection tool is not the same thing; it selects objects, not colors.
- Using Color Range: In the dialog, click the eyedropper on the color you want to select in the image preview. The preview shows white where the selection will be and black where it won't. Adjust the Fuzziness slider to widen or narrow the range of similar colors included. Use the plus eyedropper to add more colors and the minus eyedropper to remove them.
- Refine the Color Range selection. Toggle Localized Color Clusters if your image has similar colors in different areas, then adjust the Range slider to limit the selection to colors near your sample. Use the Selection Preview dropdown to see the result against a grayscale, black, white, or quick mask background.
- Apply the selection. Click OK. Marching ants appear around the selected pixels. You can now copy the selection to a new layer (Ctrl+J / Cmd+J), fill it, adjust it with an adjustment layer, or delete it.
- Using the Magic Wand: Select the Magic Wand tool, set Tolerance in the options bar (a low value like 10–30 selects only very similar colors; higher values include more shades). Check Contiguous to select only connected pixels of that color, or uncheck it to select every matching pixel in the image. Click the color area.
- Add to or subtract from the selection. In the options bar, choose the Add to Selection or Subtract from Selection icon, or hold Shift to add and Alt (Windows) / Option (Mac) to subtract while clicking. This is useful when one click misses part of the area.
- Refine edges if needed. Go to Select > Modify > Feather to soften the selection edge, or Select > Refine Edge (or Select and Mask in newer versions) to clean up jagged edges around textured areas.
- Save the selection for later. Go to Select > Save Selection, name it, and click OK. You can reload it later with Select > Load Selection. This is handy when you need to make several separate adjustments to the same color area.
Common Mistakes
- Using too high a Tolerance with the Magic Wand. A tolerance of 100 or more often grabs unrelated colors and produces a messy selection. Start low and increase gradually.
- Forgetting Contiguous. If Contiguous is unchecked, the Magic Wand selects every matching pixel across the whole image, which is rarely what you want for a single object.
- Editing the original layer. Deleting or filling directly on the background layer is destructive. Duplicate the layer or use a mask so you can undo later.
- Ignoring Fuzziness in Color Range. Setting Fuzziness to 0 gives a hard, thin selection that misses anti-aliased edges; setting it too high bleeds into neighboring colors. Adjust while watching the preview.
- Expecting perfect results on gradients or photos with similar tones. Color Range works best on distinct, fairly uniform colors. Busy images may need manual cleanup with the Lasso tool or a layer mask.
Tips
- Work on a duplicate layer (Ctrl+J / Cmd+J) so you can compare before and after.
- Use the Color Range preview set to Grayscale to judge exactly which pixels are included before you commit.
- Hold Shift while using the Color Range eyedropper to add colors, and Alt/Option to subtract them, just like the Magic Wand.
- For repeating selections, save them via Select > Save Selection and reload with Select > Load Selection.
- Combine a color selection with a layer mask: click the Add Layer Mask button in the Layers panel to turn the selection into a non-destructive mask you can paint on later.
- If you only need to change one color, consider a Hue/Saturation adjustment layer with the color range targeted in its properties, which avoids a manual selection entirely.
Troubleshooting
- The selection includes too much or too little. Lower the Fuzziness (Color Range) or Tolerance (Magic Wand). Use the minus eyedropper or Subtract mode to remove unwanted areas.
- Marching ants are hard to see. Press Ctrl+H (Windows) or Cmd+H (Mac) to hide the selection edges temporarily; the selection is still active.
- Color Range is grayed out. Make sure an image is open and a pixel layer (not a text or shape layer) is selected. Some smart objects and 32-bit images restrict certain commands.
- The selection looks jagged. Apply a small Feather (Select > Modify > Feather) or use Select and Mask to smooth the edge.
- Nothing is selected after clicking OK. The preview may have shown a nearly black result, meaning the sampled color matched almost nothing. Re-sample with the eyedropper and raise Fuzziness.
- Edits affect the wrong area. Check that the correct layer is active and that no existing selection was still loaded. Press Ctrl+D / Cmd+D to deselect and start fresh.
Frequently Asked Questions
Can I select multiple colors at once in Color Range?
Yes. In the Color Range dialog, use the plus eyedropper to add additional color samples. Each sample is added to the selection range, and you can remove any with the minus eyedropper.
What is the difference between Color Range and the Magic Wand?
Color Range gives you a preview and sliders for fine control over the color range, making it better for complex images. The Magic Wand is a one-click tool that is faster but less precise, especially on photos with gradients.
Does selecting by color work on a smart object?
You can make a color selection while a smart object is active, but edits like deleting pixels require rasterizing the layer first (Layer > Rasterize > Smart Object), which loses the smart object's non-destructive properties. Duplicate the layer before rasterizing.
How do I select all pixels of one exact color?
Use Select > Color Range with Fuzziness set very low (around 0–10) and click the exact color with the eyedropper. Alternatively, use the Magic Wand with a low Tolerance and Contiguous unchecked to grab every matching pixel in the image.
Can I use color selection to change a background color?
Yes. Select the background color with Color Range, then add a Solid Color fill layer or use Image > Adjustments > Hue/Saturation. For cleaner results, turn the selection into a layer mask so you can refine the edges afterward.
Why does my selection include white or gray areas?
Those pixels likely fall within the fuzziness range of the sampled color. Reduce Fuzziness or Tolerance, or use the minus eyedropper to exclude them. Check the preview in Grayscale to see exactly what is included.