How to set up smartphones and PCs. Informational portal
  • home
  • Windows 8
  • Color replacement inserting your own. Basics of working in Adobe Photoshop CS5

Color replacement inserting your own. Basics of working in Adobe Photoshop CS5

11.02.2015 27.01.2018

In this tutorial, I will tell you in detail about how to change the color in Photoshop. I will sign all the steps in detail, accompany with pictures so that it is clear and intelligibly explain where and what function can be used.

1 way

The first way to replace the color is to use the ready-made function in Photoshop "Replace Color" or Replace Color in English.

I will show on the simplest example, on a simple picture. Take the icon and open it in Photoshop.

Trowel on yellow color icon. We will replace the yellow color with any other color that interests us. To do this, go to the menu Image – Correction – Replace Color (Image – Adjustments – Replace Color)

The color replacement dialog box appears. Now we have to specify what color we will change, to do this, activate the Eyedropper tool (see arrow) and click on the master with it. You'll see this color appear in the dialog box at the top, which is labeled Selection.

At the bottom heading Replacement - there you can change the selected color. But before that, you can set the Scatter in Selection option. The larger the setting, the more it will capture colors. In this case, you can set it to the maximum. It will capture all the yellow in the image.

Set the Color Replacement options to the color you want to see instead of the one being replaced. I made it green by setting Hue, Saturation and Lightness.

When you're ready to change the color, click OK.

So we changed one color to another.

2 way

The second method according to the scheme of work can be said to be identical to the first. But we will consider it on a more difficult image.

For example, I chose a photo with a car. Now I'll show you how to change the color of a car in Photoshop.

As always, we need to specify what color we will replace. To do this, you can create a selection using the color range function. In other words, select an image by color.

To do this, go to the menu Selection – Color range (Select – Color Range)

Then it remains to click on the red color of the car and we will see the function determined it - painting it with white in the preview window. White color shows which part of the image is selected. The spread in this case can be adjusted to the maximum value. Click OK.

After you click OK, you will see how the selection was created:

Now you can change the color of the selected image. To do this, use the function – Image – Correction – Hue / Saturation (Image – Adjustments – Hue / Saturation)

A dialog box will appear.

Immediately check the Toning option (bottom right). Now using the Hue, Saturation and Brightness options, you can adjust the color. I set the color to blue.

All. The color has changed.

It was - became:

The ingenious developers of the Adobe gem probably did not suspect that the Color Replacement tool in Photoshop would become, among other functions, one of the leaders in terms of frequency of use.

Recolor brush

You can find the brush called Color Replacement in the Brush tool group (in Photoshop CS3 and earlier). This tool is good for its simplicity (for recoloring objects, you can do without laborious selection), but at the same time it is not entirely predictable.

In essence, this circle-and-cross cursor color substitute works like a regular brush, painting the area first, preserving the textural and structural features of the image, but with some caveats.

Firstly, unlike a normal brush, in its settings, in addition to size and hardness, you can set the intervals (when moving), the angle of inclination and the shape of the print, as well as adjust the pen pressure (when using graphics tablets).

During the painting process, the program continuously analyzes the paint within the brush print, replacing it with the specified as the main color in accordance with the selected mode.

By default, the "Chroma" mode is set, in which the color and saturation change, but the brightness remains the same, and the new hue, of course, will not exactly match the selected color.

In the "Brightness" mode, the original tone is preserved, but the brightness changes.

In the "Hue" mode, the color will change tonally to the declared paint, while the original brightness and saturation will be preserved.

By selecting the "Chroma" option, we will change the saturation, while maintaining the brightness of the original paint.

The Saturation mode retains the brightness but changes the original color's hue and saturation.

To the right of the mode window on the settings panel at the top, there are three options for sampling.

By choosing the first one ("Continuous"), we instruct the program to continuously scan the color in the brush print area while we hold the button, painting over the object.

If we specify "Once", the color sample taken at the first click will be used as a sample. This option is suitable for uniformly colored areas.

In the third option ("Background Sample"), only areas related to the background color will be repainted.

The Limits setting determines the extension of the replaced color as the mouseover tooltip asserts.

The "All Pixels" option replaces all pixels in the "target" area of ​​the brush. With "Adjacent Pixels" selected (default), we will paint within the brushprint only those that are adjacent to the color pixels directly below the cross. In the "Edge Selection" mode, all the pixels of the sample will be recolored, but with emphasis on the edges.

In principle, by choosing the appropriate brush size, you can confidently repaint in the boundary zones of the object, even accidentally getting into a different color, if the "Tolerance" parameter is correctly selected, which determines the error when choosing relative colors, as the hint says. As the tolerance increases, the range of replaced tones expands, and vice versa.

Thus, we can conclude that the "Color Replacement" brush in "Photoshop" is a rather flexible tool, and, despite its "straightness", in skillful hands it can do a lot.

All commands that can radically change the color without destructive consequences for the image are in the "Correction" list in the "Image" menu. These are functions such as "Color Balance", "Hue/Saturation", "Selective Color Correction" and "Replace Color".

In the "Color tone" mode - the "chameleon" object

Another undeservedly rarely mentioned and infrequently used way of color transformation lies in the modest "Hue" blend mode. By selecting the "Color" adjustment layer and specifying the desired paint, the blending mode on this layer is then changed to "Color tone". The object, of course, will not be repainted exactly in the specified color, but the hue will change. If you then double-click on the fill thumbnail of the adjustment layer, the color picker opens and you can cycle through the options while watching the chameleon effect on the canvas.

The excess is erased with a soft black brush on the mask of the adjustment layer, which is what it is good for.

Of course, there will be more fuss with colorfully colored objects, so it’s better to repaint objects that are more or less uniform in color in this way.

Instead of an adjustment layer, you can create a new layer, change its blending mode to "Color tone" and, choosing the desired color, paint over the object with a brush, then correcting the flaws with an eraser.

A word about color balance

By selecting "Color balance", we can pre-colorize the selected object using the Cyan - Red, Magenta - Green and Yellow - Blue color pair engines. Tone balance is adjusted in shadows, highlights and midtones.

Hue and Saturation

The hue and saturation adjustment functions are very commonly used for tasks such as color replacement in Photoshop.

The color change algorithm in the dialog box called by the "Hue/Saturation" command is based on adjusting the hue, saturation, and brightness parameters. Here we can shift the overall color range of a picture or a selected fragment (object) and adjust the colors individually in different parts of the color range by selecting the desired tone with a pipette.

In the list of ranges below (under "Style"), where the default is "All", there are six more color ranges that can be processed simultaneously, but with separate parameters.

Given the power of the tool in terms of color correction, it will not be difficult to recolor the selected object here.

Selective color correction

This feature allows you to change colors from HSB (hue, saturation, lightness), but CMYK, by controlling the amount of cyan, magenta, yellow, and black in the selected color. Having selected the object to be repainted in the image, select the required color group in the "Colors" box and use the sliders to adjust its composition.

Sometimes, instead of the command "Selective color correction" (Selective Color) in the menu "Image"\u003e "Correction", it is better to use the adjustment layer of the same name (Layers> New Adjustment Layer or the button on the layers panel at the bottom). In this case, it becomes possible to correct the effect on the mask of the adjustment layer by removing everything superfluous with a black brush.

Replacing white and black

While changing the color with the corrective functions, you may notice that the white color cannot be recolored in this way. Replacing the white color in "Photoshop" is solved very simply: if this area is pre-selected, and then, having deleted, repainted.

However, this cardinal solution is destructive. It is justified only in the case when it is not the original drawing itself that is important, but its color. Or if you just want to give the white color a different hue, try converting the image to CMYK and using the Selective Color feature, and then back to the RGB color space.

Depending on the uniformity of the color, you can use any tool from the extensive arsenal of Photoshop tools to select (Quick Selection, Background Eraser, Magic Eraser, etc.), but the best option is most often the "Color Range" in the " Selection". And how a new color takes root in place of the removed white depends on the quality of the selection.

By the way, if you need a replacement in Photoshop, all the arguments regarding recoloring the white color are valid for this case as well.

Replace color

This command from the Adjustments list in the Image menu (or the appropriate adjustment layer) is easier to use than Hue/Saturation, and its results are more predictable.

In the dialog box, use the pipettes to select the paints to be changed. Using the "Hue", "Saturation" and "Brightness" sliders, we achieve the desired effect. To control the selection, it is better to select the "Selected area" checkbox (the image will be shown as a mask). The Scatter slider is used to correct the scatter outside the selected area.

This color replacement method is most effective for contrasting and not very colorful images.

Recoloring in Lab mode

One of the quickest and relatively simple ways to recolor objects is to replace colors in Photoshop using the Lab color mode, although it is desirable to have at least some understanding of the Lab color space to use this method effectively.

So, the L coordinate specifies the brightness (lightness) value, defined in the range from 0 (the darkest) to 100 (the lightest), and the color parameters are specified by the coordinates A (color in the range from green to red) and B (color in the range from blue to yellow).

Thus, in Lab, the brightness value is separated from the chromatic color parameters, which makes it possible to influence the brightness, contrast, and color of the image separately. It is this circumstance that sometimes makes it possible to speed up the processing of images, for example, if it is necessary to replace the color.

True, this option is not suitable for repainting colorful multi-colored objects and objects with complex contours (hair, fur). Let's say you need to change the color of a car. In Lab, color replacement in "Photoshop" involves, first of all, transferring the image to this mode.

We transfer the picture to the Lab mode (Image> Mode> Lab), then select the desired color from the libraries by double-clicking on the main color on the toolbar, and remember the values ​​of the L, A and B channels.

In the "Pipette" tool group, select "Color Standard" and put a mark (control point) in the representative area of ​​the replaced auto color, thereby calling the "Info" panel.

Now we add an adjustment layer "Curves" and for each channel we find the position of the curve in accordance with the fixed values, referring to the "Info" palette.

The curves of channels A and B must necessarily cross the center of the graph, and the curve of the luminance channel L must necessarily maintain the angle of inclination.

Now double-click on the image layer to open the "Layer Style, Blending Options" window. We transfer attention to its lower part ("Overlay if"). Here, by manipulating the sliders for each parameter (L, A and B), we separate the car from the background or other objects.

Repainting everything

By mastering the methods of color replacement listed above, you can recolor almost any object. Depending on its complexity, one method or another may be preferable. For example, changing hair color in Photoshop is easy to do using the Hue/Saturation and Color Balance adjustment functions, but the main task here is to select an object with such a complex (usually) outline.

Most often, a quick mask is used for selection (a button with a dotted ring at the very bottom). Then, the selection is made using the special features of the "Refine Edge" command in the "Select" menu.

The selected area is usually copied to a new layer (Ctrl + J), then the painting tools noted above are applied to it.

And such simple tasks as replacing eye color in Photoshop, where standard selection tools are used, are generally solved in a jiffy. The eye can be selected by selecting "Lasso" or "Oval" (for pupils), then, as in the previous case, replace the color by applying the "Hue/Saturation" correction.

The Color Replacement brush works well for this too.

Everything is the same with color

Most user requests related to recoloring objects in Photoshop, as a rule, do not specify a specific version of the editor, and if they do, color replacement in Photoshop CS6 is of interest much more often than others.

Perhaps this is due to a more significant update of the program in relation to the previous version than it happened before. Changes have been made to background save and autosave features, selection tools, cropping tools, Magic Wand and Eyedropper, brush options, some filters, fill features, layer editing, interface colors, and more.

There are new features for working with RAW files in the new version of Camera RAW7, gradient fills, artistic styling of images, video editing, finding the right layer in multilayer documents, as well as a new Color Lookup color correction, etc.

Nevertheless, the corrective functions in the "Correction" list in the "Image" menu have not changed much during the program modernization, so recoloring objects, for example, in CS2, and replacing colors in Photoshop CS6 are practically no different in essence. This is a note for those owners of earlier versions who believe that in new modifications there are more options for replacing colors.

It often happens like this: I found the right picture, but the color is not the right one; or just wanted to diversify the usual. How to change color in photoshop The question is justified, because in Photoshop you can replace the color in several ways. Much depends on the dispersion of a certain hue throughout the image. The less often the replaced color will occur in other parts of the image, the easier it is to replace the color in Photoshop.

And now let's look at several ways and figure out how to replace one color with another in Photoshop.

The first way is the easiest and fastest. But the object of repainting should not be too complicated. For example, take a photo of a lime on a table. The background is almost uniform, green color is present only on the lime. The fruit is round, it will not be difficult to recolor.

Open the image in Photoshop and unpin the layer by right-clicking on the castle image.

Create a new transparent layer above the photo layer ( Shift+Ctrl+N). Calling the tool "Brush" / Brush(key B). It is better to take a hard brush. On the control panel, call the properties of the brush and select a hard, with clear stroke edges.

Choose the color of the brush that we want to repaint the lime. Let's take blue for example. The palette is in the toolbar at the bottom. Called by double clicking on the icon. By moving the sliders on the spectrum, you can select a color range. We select the tone of the color by moving the white ring in the square window where the tone changes from white to black.

We become on a transparent layer, select the size of the brush with the keys Kommersant either increase or X- reduce and paint over our lime.

Now change the layer's blend mode from "Normal" / Normal on Hue/Hue. You can do this in the layers palette. Thus, the lime will change color.

If you hold down the key ctrl and, moving the cursor to the layer icon, click once, the shaded area will be highlighted. Now, without removing the selection, you can change the color of the brush and select other colors. You don't need to repaint. You can press the key combination after choosing a color Alt+Delete. So the selected area will be filled with a new color.

In the following example, let's look at how to replace the color in Photoshop more efficiently. This method may take a little more time, but the result is worth it.

How to replace one color with another in Photoshop, if the shades of the color being changed are often found in the picture

Let's say you want to change the color of the model's lips. Red, pink and shades of these colors are present in skin color. Changing the color of the lips, you need to leave the color of the skin unchanged.

Open the image in photoshop. Create an adjustment layer. The list of adjustment layers can be opened in the layers palette below.

In the adjustment layer settings window, select the "Red" color channel, click on the tool Eyedropper Tool, then make one click on the lips of the model. So we will determine the color that we will change.

Moveable parentheses will appear at the bottom of the gradient. With their help, you can make the range of a given color wider or narrower. When moving the checker Hue / Hue the selected lip shade will change across the spectrum, depending on where you take the checker. In this case, the shade of red will change throughout the image.

Ctrl+I

Having chosen the color you want to change, close the window for editing the adjustment layer, get on the mask of the adjustment layer (white square) and press the keys Ctrl+I. The mask is inverted to black, and all our changes will be visually lost.

When all the areas where the color needed to be changed have been worked out, you can save the image (shortcut Shift+Ctrl+S). If in some area you missed, you can undo the action Alt+Ctrl+Z or paint on the mask of the adjustment layer all the misses with a black brush. This method will more accurately help you choose a new color, and the work will look neater.

Learn more about Photoshop in a course at Fotoshkola.net.

How to replace one color with another in Photoshop if the original color is black or white

Things are different with the change of black and white.

To change the black color, you can apply an adjustment layer "Hue / Saturation" / Hue / Saturation, but work not with the color channel, but with toning. To do this, in the layer settings, check the box "Toning" / Colorize.

Let's consider in more detail. Let's say you need to repaint a black sofa. We select the sofa using the tool (call with the key W).

With the help of combinations ctrl+c And ctrl+v transfer the selected area to a transparent layer and apply an adjustment layer to it "Hue / Saturation" / Hue / Saturation. To do this, between the adjustment layer and the layer with the selected object, you need to click the left mouse button while holding the key alt.

Now double-click on the adjustment layer to call up its settings, put a tick "Toning" / Colorize and by moving the hue, saturation and brightness checkers, we select the desired color.

It turns out simply, beautifully, without a catch.

To repaint the white color, you can use an adjustment layer. Color in overlay mode "Multiplication" / Multiply.

Open the image, create an adjustment layer Color. We immediately set the layer color to the one in which we plan to paint white.

Change the blend mode to "Multiplication" / Multiply, get on the mask of the adjustment layer and click Ctrl+I.

Go to the layer with the image and select the desired areas of white with the tool "Quick selection" / Quick selection(call by key W). Without removing the selection, we stand on the mask of the adjustment layer and paint over the mask with a white brush of large diameter. The color will change only where you set the selection with the tool "Quick selection" / Quick selection, which can be determined from the dotted line.

If desired, you can change the color of the adjustment layer. To do this, double-click on it and select any new color in the spectrum.

It's that simple. Try, experiment. You will definitely succeed. Now you know several ways to change a color to another in Photoshop.

Learn more about Photoshop in a course at Fotoshkola.net.

In this tutorial, you will learn in detail about how to change the color in Photoshop. All the steps are described in detail, accompanied by pictures, so that it is clear and intelligibly explained where and what function can be used. So, let's begin!

The first way to replace the color is to use the ready-made function in Photoshop "Replace Color" or Replace Color in English.

I will show on the simplest example, on a simple picture. First you need to download photoshop cc. Take the icon and open it in Photoshop.

Trowel on yellow color icon. We will replace the yellow color with any other color that interests us. To do this, go to the menu Image – Correction – Replace Color (Image – Adjustments – Replace Color)

The color replacement dialog box appears. Now we have to specify what color we will change, to do this, activate the Eyedropper tool (see arrow) and click on the master with it. You'll see this color appear in the dialog box at the top, which is labeled Selection.

At the bottom heading Replacement - there you can change the selected color. But before that, you can set the Scatter in Selection option. The larger the setting, the more it will capture colors. In this case, you can set it to the maximum. It will capture all the yellow in the image.

Set the Color Replacement options to the color you want to see instead of the one being replaced. I made it green by setting Hue, Saturation and Lightness.

When you're ready to change the color, click OK.

So we changed one color to another.


Consider a dialog box

At the top " Selection» (Highlight) is a tab from « color range».

With the help of an eyedropper, a sample of the color that needs to be changed is marked on the sample image.

An eyedropper with a plus adds an area, an eyedropper with a minus subtracts.

Fuzziness setting

The slider defines the boundaries within which the color shades will change. With the maximum spread, almost all shades of the selected color that are available in the image will fall under the replacement. With a minimum spread, only those pixels that exactly match the sample will fall under the replacement.


Starting from version Photoshop CS4 there is an additional option Localized Color Clusters» (Localized color sets), designed to define areas of the same color. Its use allows you to more accurately highlight the color in the image.


In the lower part " Replacement» (Replace) dialog box « Replace color» (Replace color) is a tab from « Hue/Saturation» (Hue/Saturation) which, based on the name, selects the color and hue to replace.

Let's consider color replacement on a specific example.

Step 1

Opening the image in photoshop. Create a duplicate of the main layer at once (Ctrl + J).


Step 2

Go through the menu Image - Adjustments - Replace Color» ().

Let's say I want to change the color of a T-shirt.

Step 3

If you have a version from Photoshop CS4 and above, then immediately put a tick in front of " Localized Color Clusters» (Localized color sets).

We increase " Fuzziness» (Scatter) to the maximum value.

With the help of an eyedropper, mark the area on the image. Next, choose the color you want to change to. We click on the colored square with the signature " result» (Result) and select the desired shade.

It can be seen that in the area of ​​​​shadows, the color is not sufficiently highlighted. Choose pipette « + » and click on the image in the crease area on the T-shirt.


The T-shirt was completely dyed, but at the same time, unnecessary areas were dyed, for example, the face. Choose pipette « - » and click on her face.


As you can see in the image itself, lips and ears remained painted, this defect can be corrected using eraser.

This method of color change works most successfully on contrasting images.

Also on images where there are few related shades to the color being changed.

And finally, one more piece of advice. If the image still contains several areas of the same color, and among them you need to change, for example, only one, then before using the command " Replace color» (Replace Color), highlight the area that needs to be replaced. Any selection tool can help you with this.


Top Related Articles