Learn how to replace the color of objects in an image using various methods in Photoshop
Photoshop provides several techniques that let you replace the colors of objects. For great flexibility and results, apply a Hue/Saturation adjustment to selected objects. For less flexibility but a convenient grouping of options, use the Replace Color dialog box. For speed but less precision, try the Color Replacement tool.
In most cases, this flexible technique best replaces colors. Because masks and adjustment layers are non-destructive, you can later fine-tune the results with complete freedom. A unique Colorize option makes absolute, rather than relative, color changes (avoiding tinting from original colors).
In the Adjustments panel, click the Hue/Saturation icon. The selection becomes a mask on the adjustment layer.
In the Properties panel, change Hue and Saturation settings to replace the object’s color. If the original color tints the new color, select Colorize, and readjust settings. (See Adjust hue and saturation.)
Leave the Lightness setting at zero to maintain contrast. To maintain both contrast and saturation, select the Hue blending mode for the adjustment layer.
For more information, see Adjustments panel overview.
The Replace Color dialog box combines tools for selecting a color range with HSL sliders for replacing that color. You can also choose the replacement color in the Color Picker.
Replace Color lacks the Colorize option from the Hue/Saturation adjustment, which may be needed for a complete color change. You may also find the adjustment layer technique easier for changing specific objects. However, the Replace Color command is good for global color changes—especially changing out-of-gamut colors for printing.
Displays the mask in the preview box. Masked areas are black, and unmasked areas are white. Partially masked areas (areas covered with a semitransparent mask) appear as varying levels of gray according to their opacity.
Displays the image in the preview box. This option is useful when you are working with a magnified image or have limited screen space.
Shift-click or use the Add To Sample Eyedropper tool to add areas.
Alt-click (Windows), Option-click (Mac OS), or use the Subtract From Sample Eyedropper tool to remove areas.
Click the Selection Color swatch to open the Color Picker. Use the Color Picker to target the color you want replaced. As you select a color in the Color Picker, the mask in the preview box is updated.
Drag the Hue, Saturation, and Lightness sliders (or enter values in the text boxes).
Double-click the Result swatch and use the Color Picker to select the replacement color.
You cannot replace pure gray, black, or white with a color. However, you can change the Lightness setting. (The Hue and Saturation settings are relative to existing color, so they have no effect.)
The Color Replacement tool paints over a targeted color with a replacement color. While this tool is good for quick edits, it often proves unsatisfactory, particularly with dark colors and black. If you don’t get good results after experimenting with tool options, see Adjust hue and saturation.
The Color Replacement tool doesn’t work in Bitmap, Indexed, or Multichannel color mode.
For the Sampling option, choose one of the following:
From the Limits menu, select one of the following:
Discontiguous: Replaces the sampled color wherever it occurs under the pointer.
Contiguous: Replaces colors that are contiguous with the color immediately under the pointer.
Find Edges: Replaces connected areas containing the sampled color while better preserving the sharpness of shape edges.
For Tolerance, choose a low percentage to replace colors very similar to the pixel you click, or raise the percentage to replace a broader range of colors.
If the range of replaced colors is too small, increase the Tolerance setting in the options bar.