Canddi

Replace colour

Photoshop’s Replace Color command lets you sample a colour range and change its hue, saturation and lightness. It is useful for a quick colour change, but the important part is controlling which pixels are affected. Similar colours elsewhere in the image may be included too.

Prepare a working copy

Save your document and duplicate the image layer before using this direct adjustment. Keep the original layer underneath so you can compare the result or start again. Select the image layer you intend to edit, not a layer mask or an unrelated layer.

For practice, choose a photograph with a clearly coloured object, such as an orange pen cap. If other objects share that colour, make a selection around the intended object before opening the command.

Sample and refine the colour range

  1. Choose Image > Adjustments > Replace Color.
  2. Use the dialog’s eyedropper to click the colour you want to change.
  3. Inspect the selection preview. White shows the selected area, black the excluded area, and grey partially selected pixels.
  4. Use Add to Sample to include shades missed by the first click. Use Subtract from Sample to remove unwanted sampled colours.
  5. Adjust Fuzziness to narrow or broaden the range of related colours. Watch the preview as you change it rather than choosing a value by habit.

A shaded object rarely contains just one flat colour. Sample its relevant lighter and darker areas, while checking that the background or neighbouring objects are not being picked up.

Three rows show two orange objects, both recoloured teal, then only the first recoloured after restricting the target area. Concept diagram, not software UI.
Colour similarity and object identity are different. Restricting the target area helps prevent an unwanted change to a second object with the same colour.

Adjust the replacement

  • Hue: shifts the colour.
  • Saturation: changes its intensity.
  • Lightness: makes the result lighter or darker.

Keep Preview enabled and compare the whole image as well as the object. Make restrained changes first so you can judge whether texture, highlights and shadows still look natural. Confirm the adjustment only when the target and surrounding areas look right.

No change?

If small patches retain their original colour, revisit the sampled range using Add to Sample. Do not immediately increase Fuzziness to its maximum: that can include colours you wanted to leave alone.

If the wrong area changes, cancel and check the selected layer and any active selection. If a very dark, very light or neutral area does not take the new colour as expected, a simple hue shift may not be the right method; use a more controllable masked adjustment instead.

Restricting colour change

To keep the change on the intended object:

  • Make an object selection before applying Replace Color.
  • Work on an isolated copy of the object when that suits the document.
  • For a change you expect to revise, consider a Hue/Saturation adjustment layer with a mask.

Adobe’s masked Hue/Saturation workflow provides an editable alternative. Check the edges against the surrounding image and inspect the final result at its intended viewing size.

Need help finding the correct layer? See our Photoshop layer-selection guide.

Build this skill: Photoshop colour editing

Explore Academy Class Photoshop courses or tell us about the images you want to edit to discuss suitable training.