Using the Color Replacement Tool in Photoshop

This article presents the Color Replacement Tool of Photoshop. This tool changes the hue of an element quickly, without affecting the other areas of the image.

It is particularly useful for correcting a color, testing different variations or applying a precise visual effect. It relies on a dynamic selection of pixels, which gives good control over the modified area.

Used well, the Color Replacement Tool saves a lot of time. It produces a clean, consistent and professional result, without the need for complex selections.

Catalog reference: Photoshop Tutorial_0008.

Identify the level of each chapter

🟢 All levels

  • Core concepts to master.
  • Recommended for all users.

🟡 Intermediate level

  • Requires mastery of the core concepts.
  • Commonly used techniques.

🔴 Expert level

  • Advanced techniques.
  • Used in specific or professional cases.

Notice

Archive article

This tutorial, kept for documentary purposes, was created with an older version of Photoshop. Some interfaces or features may differ in more recent versions.

The screenshots in this article show the French interface of Photoshop. Menu and panel names are given in English in the text.

🟡 Starting image

The exercise uses a photo of a tram running through the city of Rome.

The goal of this tutorial is simple: replace the green color of the tram with a bright, vivid orange. This transformation illustrates clearly how the Color Replacement Tool works and how effective it is for changing a hue in a targeted way.

Open the starting photo of a green tram in Rome

Before starting, save the image in the native Photoshop format: PSD (.PSD). This format allows non-destructive work and keeps the original file intact.

Once the image is open in JPEG format, go to the menu: File → Save As….

This creates a separate working copy and preserves the initial image.

Open the File menu and choose Save As

In the Format drop-down list, select Photoshop (.PSD).

This choice guarantees compatibility with all the features of Photoshop, such as layers, masks and adjustments, which are essential for non-destructive work.

Select Photoshop PSD in the Format drop-down list

In the upper part of the window, choose the destination folder for the file.

Then click the Save button to confirm.

Click the Save button to confirm the PSD file

From now on, work on this file in PSD (.PSD) format. At the end of the project, export a finished version of the image in JPG (.JPG) format.

This method keeps the original photo intact, while providing the full power of the PSD format, in particular the management of layers, masks and non-destructive adjustments.

Now select the Pen Tool in the toolbar [Windows shortcut: P] [Mac shortcut: P].

Select the Pen Tool in the toolbar

Make sure the Pen Tool is selected.

In the options bar at the top of the interface, check that the Path mode is active. This mode draws precise vector paths, without immediately creating a shape or a mask.

Activate Path mode in the Pen Tool options bar

With the Pen Tool, trace the outline of the object whose color must change, here the tram.

Proceed point by point, clicking to create anchor points, then adjust the curves if needed to follow the shapes closely. Take the time to be precise: a careful path makes the next steps easier and guarantees a clean, realistic result.

Trace the outline of the tram with the Pen Tool

Once the tram is fully outlined, some areas must be excluded from the color change.

Select the Pen Tool again, then, in the options bar, activate the Subtract from Shape Area (-) mode. This option removes areas from the existing path.

Then trace precisely the outline of the front and side windows of the tram. These areas are excluded from the selection, so they are not affected by the color change.

Select the Subtract from Shape Area option in the options bar

The illustration below shows the path after subtracting the areas to exclude, in particular the windows of the tram.

These areas removed from the path are not affected by the color change, which preserves their original appearance and gives a more realistic result.

Check the outline after subtracting the tram windows

Now rename the path to keep it.

In the Paths panel, locate Work Path. This panel is usually available through a tab next to Layers.

Double-click Work Path. A dialog box opens and allows a name to be entered. Enter a clear name (for example: Tramway), then confirm by clicking OK.

This step is important: it prevents the path from being replaced or lost during the following operations.

Locate the Work Path in the Paths panel

Open the Save Path dialog box with its default name

Enter the name tramway, then click OK in the dialog box

Check the saved path named tramway in the Paths panel

At the bottom of the Paths panel, click the Load Path as a Selection icon.

This action immediately converts the path into an active selection. The selection outline then appears around the tram, which shows that the area is ready to be modified.

This conversion is essential: it makes it possible to apply color changes only to the defined area, without affecting the rest of the image.

Click the Load Path as a Selection icon at the bottom of the panel

On the image, the selection appears as animated dotted lines, often called “marching ants”.

These dotted lines show that the selection is active. All the changes made from now on are limited to this area and do not affect the rest of the image.

Check the marching ants selection around the tram

To improve the quality of the selection, go to the menu: Select → Modify → Smooth….

This command softens the edges of the selection by slightly rounding the corners. It is particularly useful if the path contains rather rigid transitions.

A softer outline guarantees a more natural color change and a more professional visual result.

Choose Smooth in the Modify submenu of the Select menu

Keep the value of 1 pixel for the radius, then confirm by clicking OK.

This light setting is usually enough to improve the smoothness of the edges, without distorting the selection.

Keep the radius at 1 pixel and click OK

Go to the menu: Select → Inverse [Windows shortcut: Shift + Ctrl + I] [Mac shortcut: Shift + Cmd + I].

This command inverts the current selection. Only the area of the tram remains active, so the color changes apply only to this element, without affecting the rest of the image.

Choose Inverse in the Select menu

Now duplicate the original layer to work on a copy, while keeping the initial file intact.

In the Layers panel, right-click Background, then select Duplicate Layer….

A dialog box opens: keep the default name or change it, then confirm by clicking OK.

This step is essential for a non-destructive working method, because it makes it easy to return to the original image if needed.

Right-click the Background layer and choose Duplicate Layer

Name the duplicated layer, then click OK in the dialog box

This new layer appears in the Layers panel, above the original layer.

Then turn off the Background layer by clicking the eye icon to the left of its name. This hides it temporarily.

This way, the work happens only on the copy of the layer, which reinforces the non-destructive workflow and protects the original image.

Hide the Background layer using the eye icon

Now create an adjustment layer to adjust the colors in a non-destructive way.

Go to the menu: Layer → New Adjustment Layer → Color Balance….

A dialog box opens. Give a name to this layer or keep the default one, then confirm by clicking OK.

This type of layer changes colors without directly altering the pixels of the image, which gives great flexibility for corrections and makes it easy to go back.

Choose Color Balance in the New Adjustment Layer submenu

Name the adjustment layer and click OK

Once the operation is done, the new adjustment layer appears in the Layers panel, above the other layers.

Now adjust the Color Balance settings to change the hue of the tram. Thanks to the active selection, these settings apply only to the relevant area.

Check the Color Balance adjustment layer in the Layers panel

The three illustrations below show the settings applied to the Midtones, Highlights and Shadows.

To obtain an orange hue, keep in mind that this color is a mix of red and yellow. Move the sliders toward these two colors to adjust the hue of the tram gradually.

Work in small steps and watch the image carefully after each adjustment to keep a natural and balanced result.

Once the settings are done, confirm by clicking the OK button.

Set the Midtones levels to +100, 0 and –100

Set the Shadows levels to +28, 0 and –24

Set the Highlights levels to +11, 0 and 0

After these settings, the result is similar to the one shown below.

Check the tram turned orange after the Color Balance adjustments

To adjust the saturation, start by adding a new adjustment layer.

Go to the menu: Layer → New Adjustment Layer → Hue/Saturation….

A dialog box opens. Rename the layer if needed, then click OK to confirm.

This layer makes it possible to adjust the saturation and the intensity of the colors precisely, while keeping a non-destructive workflow.

Choose Hue/Saturation in the New Adjustment Layer submenu

Name the Hue/Saturation layer and click OK

Once the operation is done, the new adjustment layer appears in the Layers panel, above the other layers.

Now adjust the Hue/Saturation settings to refine the intensity of the colors. Thanks to the active selection, these settings apply only to the tram, without affecting the rest of the image.

Check the five layers listed in the Layers panel

In this case, decrease the Saturation value to reduce the intensity of the colors.

Reducing the saturation slightly gives a more natural result and avoids an effect that is too vivid or artificial. Move the slider gradually while watching the image to find the right balance.

Decrease the Saturation value to –28 and confirm with OK

And here is the result: the tram is no longer green, but orange.

Although the Pen Tool may seem complex at first, it remains the most precise tool for making a clean and detailed selection. It takes a little practice to master, but it offers an unmatched level of control.

In some cases, automatic tools such as the Magic Wand Tool can give good results. However, they quickly show their limits on complex images.

For precise and professional selections, the Pen Tool therefore remains the reference tool in Photoshop.

Check the final image with the orange tram

🟡 New practices: color replacement in modern Photoshop

With recent versions of Photoshop, working methods have evolved. The tools are now smarter, faster and oriented toward a non-destructive workflow.

This part shows how to replace the color of an object with modern techniques, which are often more efficient than the systematic use of the Pen Tool.

General principle

Today, Photoshop favors the use of:

  • automatic selections
  • Layer Masks
  • Adjustment Layers

These tools make it possible to modify an image without ever altering the original pixels, which gives great flexibility.

Quick subject selection

Instead of tracing an outline manually, use an automatic selection.

Go to the menu: Select → Subject

Photoshop analyzes the image and automatically detects the main subject.

To refine this selection, use: Select and Mask…

This workspace makes it possible to:

  • improve the edges
  • handle complex areas (hair, windows, fine details)
  • adjust the Radius
  • soften the edges with Feather

Using the Layer Mask

Once the selection is active, click the Add Layer Mask button.

The layer mask makes it possible to:

  • show or hide certain areas
  • adjust the selection at any time

Use the Brush Tool to modify the mask:

  • painting in black hides areas
  • painting in white reveals them

This method offers precise and reversible control.

Replacing the color

  • Create an adjustment layer through the menu: Layer → New Adjustment Layer → Hue/Saturation…

    In the options, activate: Colorize

    Then adjust:

    • Hue
    • Saturation
    • Lightness

    Work gradually to obtain a natural and balanced color.

A more precise alternative

For finer control, use:

  • Selective Color
  • Color Balance

These tools adjust the colors according to different tonal ranges:

  • Shadows
  • Midtones
  • Highlights

Advanced adjustments

To improve the final result:

  • Change the Blend Mode of the layer, for example:
    • Color to keep the original luminosity
    • Overlay for a more contrasted effect
  • Adjust the Opacity to control the intensity of the effect
  • Combine several Adjustment Layers to refine the result

Advantages of modern methods

These techniques offer many advantages:

  • significant time savings
  • fewer complex operations
  • a more natural result
  • 100% non-destructive work
  • changes that can be adjusted at any time

Conclusion

The Pen Tool remains essential for very precise selections, in particular in a professional context.

However, in most cases, favor the modern methods based on:

  • Select Subject
  • Select and Mask
  • Adjustment Layers

These tools make it possible to work faster, with more precision and more flexibility.