Basics of working in Adobe Photoshop CS5. Replace color command in Photoshop

Namely about the team Replace color. This tool is located in the menu.

Let's look at the dialog box.

At the top Selection There is a tab from the “Color range”.

Using an eyedropper, a sample of the color that needs to be changed is marked on the picture sample. Pipette with plus adds an area pipette with minus- subtracts.

Setting the parameter Fuzziness.

Using the slider, you define the boundaries within which the color shades will change. With maximum variation, the replacement will include almost all shades of the selected color present in the image. With minimal scatter, only those pixels that exactly match the sample will be replaced.

An additional option has been added to Photoshop CS4 Localized Color Clusters, 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 In the “Replace Color” dialog box, there is a tab from “Hue/Saturation”, with the help of which, based on the name, you select the color and shade to replace.

Let's look at color replacement using a specific example.

Step 1.

Open the image in Photoshop. We immediately create a duplicate of the main layer.

Step 2.

Let's go to Image - Correction - Replace Color. I want to change the color of my T-shirt.

Step 3.

If you have CS4, then immediately put a tick opposite Localized Color Clusters. I increase the Scatter to the maximum value. Using an eyedropper, mark an area on the image. Next, I choose the color I want to change to. I click on the colored square labeled “Result” and select the shade I need.

It can be seen that in the shadow area the color is not highlighted enough. I select the Eyedropper “+” and click on the image in the area of ​​the folds on the T-shirt.

The T-shirt was completely dyed, but at the same time, unnecessary areas, for example, the face, were dyed. I select the Eyedropper “-” and click it in the face area.

As you can see in the image itself, the lips and ears are still painted; this defect can be corrected with the help of an eraser.

This color changing method works most successfully on contrasting images. Also in 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 only one of them needs to be changed, for example, then before using the command Replace color, you should highlight the area that requires color replacement. Any selection tool can help you with this.

I wish you success!
Always for you: website
Do you have a desire to show the results of your work? Post your work on our forum!

Dear site visitors who took the time to read this lesson. We would really like to know if you liked it and if it was useful to you. Don't be lazy to leave a comment. Thank you in advance.

Changing colors

Team Replace Color creates a temporary mask around specified colors and then replaces them with other colors. The principle of a team is in many ways similar to a team Color Range. Let's see the action of this command using an example. Open the graphic file (Fig. 3.29).


Rice. 3.29. Original image

Select a team Image | Adjustments | Replace Color. In the window that appears as a result of executing the command, select the switch Selection to see the mask in the preview window. Check the box Preview to see how the color adjustment will be reflected in the image. Tool Pipette Click on the darkest part of the background. Part of the background has been highlighted. If you click not the background, but the flower, then the color of the flower will not be replaced, but the color of the flower will be replaced - fig. 3.30.


Rice. 3.30. Example of replacing object color

Select the middle pipette Add to Sample and click it on an adjacent area of ​​the background several times until almost the entire background turns white. Increase the slider value Fuzziness. If after this there are still unselected areas, click on them with the eyedropper with the plus sign. Changing the position of the sliders Hue, Saturation And Lightness you can change the background color in a wide range of colors.


Consider the dialog box

At the top " Selection" (Select) is a tab from " Color range».

Using an eyedropper, a sample of the color that needs to be changed is marked on the picture sample.

The plus pipette adds an area, the minus pipette subtracts.

Setting the Fuzziness Setting

Using the slider, you define the boundaries within which the color shades will change. With maximum variation, the replacement will include almost all shades of the selected color present in the image. With minimal scatter, only those pixels that exactly match the sample will be replaced.


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


In the lower part " Replacement" (Replacement) dialog box " Replace color"(Replace color) is the tab from " Hue/Saturation» (Hue/Saturation), with which, based on the name, you select the color and shade to replace.

Let's look at color replacement using a specific example

Step 1

Open the image in Photoshop. Immediately create a duplicate of the main layer (Ctrl+J).


Step 2

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

Let's say I want to change the color of my 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).

Increase " Fuzziness» (Spread) to the maximum value.

Using an eyedropper, mark an area on the image. Next, choose the color you want to change to. Click on the colored square labeled “ Result"(Result) and select the desired shade.

It can be seen that in the shadow area the color is not highlighted enough. Choose pipette « + " and click on the image in the area of ​​the folds on the T-shirt.


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


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

This color changing method works most successfully on contrasting images.

Also in 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 only one of them needs to be changed, for example, then before using the command “ Replace color» (Replace color), you should select the area that requires color replacement. Any selection tool can help you with this.


I greet you as always, dear friends. I am very glad to see you on my blog. Do you draw any pictures? Otherwise, this week I’m going to publish lessons on drawing tools. The topic is also quite important for Photoshop, so you shouldn’t miss it. Therefore, you desperately need to know how to choose a brush color in Photoshop. Without this, it will be difficult further.

Look at the color choice itself. Did you notice that there are two colors (default black and white)? Why do you think? If you hover your mouse over a color, you will see that the foreground is called the foreground, and the back is called the background. The background color is usually used for erasers, gradients, etc., but in a brush plan it will work as an additional color.

The point is that when working with brushes, the main color can be changed with the background color. To do this, you need to press the key X(Latin). This way you will always have two quick-changing colors at hand.

But I will not deviate from the topic. To change the color (no matter the main or background) you just need to left-click on it. After this, a selection window will open for you, i.e. Color palette. This is where we will choose what to paint our future masterpieces with. But we can choose color in two ways. So watch and remember.

First way

On the left side you will see a large square space, and a little to the right there is a vertical stripe with flowers. So you choose the color itself from just the vertical strip, and from the large square - shades of this color. But this only works on the color model H.S.B., and the dot should be near the letter H. If you place a dot in any other place, the entire palette will change. So when choosing a color, it’s better to put the dot there.

To select a color, hold down the left mouse button on the vertical bar slider, and without releasing the mouse button, drag up and down until you find the desired color and the desired shade palette. Now choose a shade. To do this, move the small circle to the place in the square space where the ideal shade of a given color is located for you.

And at the same time you will see how your new chosen color will look compared to the current one.

That's the gist of it. Feel free to draw.

Second way

Remember in one of the first lessons I talked about? So the second method will be based on selecting colors from a specific color panel. Here you go RGB, And CMYK, And H.S.B., And LAB. Do you remember how each of these models works?

In general, to choose a color, you need to select a specific model and enter three values ​​that correspond to this model.

Let's, for example, I'll select the color red in the model RGB. To do this, I put the required values ​​in the required cells, that is, in cell R - 255, and in cells G and B with zeros. So how? Have we chosen the color we need? See for yourself.

Well, if you noticed, just below the RGB colors there is a special cell for setting the html color code. Those. when on any site a fragment (for example, text) is highlighted in any color (except for links), then rest assured that their color is specified by this hexadecimal code. There is no need to be afraid of this, it just can be very useful.

Such codes operate according to the principle RGB, i.e. The first 2 symbols mean the color red, the middle 2 symbols mean the color green, and the last 2 symbols mean the color blue. 0 is the minimum color value (white), F is the maximum color value (black). It turns out that ff0000 is the same as 255,0,0 in regular RGB, i.e. red.

Well, if you really want to return everything as it was, i.e. so that the colors become default (main - black, background - white), just press the key D. It's that simple.

I would also like to tell you about another color selection tool, namely about . But then I decided that this tool still deserves a separate article, since it has its own nuances and the color is chosen in a slightly different way.

Well, be sure to check it out Photoshop course for beginners. Everything is explained in detail, and in absolutely human language. So, thanks to these video tutorials, you can easily learn this wonderful graphic editor in a couple of weeks. Be sure to check it out.

Well, I say goodbye to you. I hope that you don’t have any questions with this topic. I wish you good luck and good mood. Don't forget to subscribe to my blog updates, then you will be happy. See you in other articles. Bye bye!

Best regards, Dmitry Kostin.