Internet Windows Android

How to change the color of an image in Photoshop. How to replace the color of an object with another in Photoshop in a separate area and in the whole picture? Changing the object's palette to white


Consider a dialog box

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

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

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.


By using Color Replacement tool(Color Replacement Tool), in Photoshop, you can easily perform such a rather complicated and painstaking task as replacing colors in an image.

Yes, there are many ways in Photoshop to accomplish this task. Of course! After all, this is a program for working with color! But still, the developers of the program considered that such a powerful tool would be preferable when deciding how to achieve this kind of task and therefore brought it closer in the form of a tool, and also endowed it with excellent capabilities, which, perhaps, in most cases will be enough to do color replacement.

Location of the Color Replacement toolbar

In earlier versions of Photoshop, this tool was located in the retouch block, next to the . In subsequent versions, it moved to drawing elements. And to this day he lives there and is called by the hot key B, like his "neighbors".

How to use the tool

So the tool Color replacement can change the color of the image to another one you have chosen. For example, in the picture below, I changed the color from yellow to green:

It took me less than one minute to complete this task! Everything is very simple, and most importantly effective.

The mouse pointer will change to a crosshair (a circle with a crosshair inside). You need to work with the tool like a brush, painting over the image with strokes a little bit, in accordance with the set size of the brush.

By the way, I remind you that the size of the brush is changed either by calling the context menu, by right-clicking, or using hot keys [ And ] on keyboard.

So it's time to understand basic principle of operation of the Color Substitution:

An important role is played by the crosshair inside the pointer circle. It doesn't just indicate the center, it's a point that does nothing more than compare. When you left-click on any part of the image, this point falls into the pixel (I recommend that you definitely read it, without this you will never understand Photoshop); a pixel must contain a color, any, it doesn't matter! Photoshop then compares that color to other pixels that are centered around the crosshair but within the circumference of the brush. If the color of this pixel matches the colors around it, magic happens - Photoshop replaces all the pixels in the circle with the color that you chose.

What is the main feature of this algorithm

Let's dive into the details below. After all, the color in the image fluctuates, it can be darker / lighter, go yellow / red, and so on. To do this, we set up the tool and first of all use the option Tolerance.

But the trick lies elsewhere - it is important for us that Photoshop does the replacement of adjacent pixels of similar color. However, when we inevitably touch other areas containing a different color, these places should remain untouched. It is the fact that after replacement you don’t have to correct mistakes, halos, places where you drove with a brush, clean something up with an eraser - all this saves a lot of time, which is why the tool is considered super fast and convenient for performing these tasks.

Look at what Photoshop is doing - by swiping the brush on the border of contrasting colors, the color replacement occurs only on one side, because that other color is no longer adjacent.

What happens in the example: I chose to change to green. Then, by clicking on the blue color of the image, I deliberately walked along the meeting line of the two colors. They are very different from each other. And although the brush circle touches pixels that are different shades of blue, Photoshop ignores this and does not change the blue, and then the yellow.

So, by clicking on the blue pixel, I asked Photoshop to change exactly the blue color and its adjacent shades within the tolerance, and the rest of the colors will be ignored.

And it’s convenient, you don’t have to be a damn neat person and even move the brush over the image with a shaking hand, while the replacement will be clear and fast. Here it is the magic of Photoshop and the power of the tool!

Instrument settings

Element 1 - Selecting Presets (Tool Presets)

This is a standard element for most Photoshop tools. It allows you to save the settings of the tool in a certain "favorites", for example, which you are going to use often. That is, it is convenient when you can press a couple of clicks, you can switch between two or more sets of parameters. There are no ready-made presets in Photoshop for Color substitutions. But by clicking on the arrow at the very beginning of the parameters panel, you can create them yourself. You can learn more about sets.

Element 2 - Brush Preset

Another standard option for brush tools. Allows you to adjust the size, hardness of the brush, as well as a number of other parameters.

Element 3 - Painting Mode

There are only four modes here:

  • Color tone (Hue).
  • Saturation
  • Chromaticity (Color) - set by default.
  • Brightness (Luminosity).

If choose Color tone, then only the color of the area you need will change. The saturation and brightness of the pixels will remain the same. Best used in small areas.

Saturation changes the intensity of the color without affecting the tone and brightness.

Chroma- combined mode of influence on the hue and its saturation.

Brightness affects only the characteristic of the same name of the selected pixels, preserving the original tone and its intensity.

Element 4 - Sampling

There are only three algorithms for sampling target pixels:

  • Continuous (Continuous) - by default.
  • One-time (Once).
  • Background Swatch.

For the color sample to be replaced, Photoshop takes the parameters of the pixel that is located exactly under the center of the cursor cross. At Continuous sampling, you change it by moving the cursor. It is used most often, because objects in the photo usually have tonal transitions, highlights, shadows, etc.

At one-time defining parameters, the program takes into account data only from the point you click on when you start working with the tool. Useful when working on large areas of a photo with a completely uniform color.

The third option is a spare. If the first two modes do not work correctly, you can try background sample. The color corresponding to the background is to be replaced.

Element 5 - Limits

Constraints define the impact zones of the tool:

  • All pixels (Contiguous).
  • Adjacent (Discontiguous) - by default.
  • Definition of edges (Find Edges).

In the first case, the parameters of all pixels within the cursor boundaries corresponding to the selected sample are changed.

In the second case, if within the cursor circle, the target impact area is diluted with a foreign color, changes occur only with those pixels that are adjacent to the cursor cross. For more accurate work in this area, you need to configure the following parameter - Tolerance.

You can try automatic edge detection if you can't get the job done in the previous two modes. But usually, it copes worse, so it is practically not used.

Element 6 - Tolerance

Tolerance expands the range of the replaced color. The higher the value is set, the more shades of color will be affected by the tool.

Element 7 - Anti-aliasing

Check mark Smoothing helps to improve the effect of the brush on the borders of overpainted areas. Makes color transitions softer.

Element 8 - Tablet pressure controls size

This option speaks for itself and can be used by those who use graphics tablets.

Noticed an error in the text - select it and press Ctrl + Enter . Thank you!

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 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.

Photoshop is widely used to correct images and photographs. Especially useful is the ability to change the color of the photo to another. Thanks to this, you can create interesting solutions for photographs and drawings.

"Replace Color" function

The easiest way to change the color of a photo in Photoshop is the built-in color change function. To change the color of the picture in Photoshop, just follow the instructions:

This method makes it easy to replace the color of an object in simple monochrome photographs.

Color replacement in Photoshop for complex photos

To make a replacement in a complex drawing, you must follow the instructions:

Thus, you can replace the color in Photoshop with another in a complex image.

Changing the blend mode

There is another way to change the palette. It is suitable for complex photographs, where the colored areas are very small. In order to use the blend mode, just do the following:

This method is great for changing the color of the eyes in a photo or creating an unusual coloring on the hair.

Changing the object's palette to white

Quite simply, it turns out to change the color of the entire object in the picture to white. To do this, you need to follow the instructions:


Thus, you can recolor any image in white.

Change color according to pattern

To change the color according to the sample, you need to do the following:


We use "Pipette"

If the picture already has an option to replace the main color of the object, you can use an eyedropper:


This method is faster for recoloring, since it is not necessary to create a color template separately. But to make the result more realistic, you will need to work longer on the correction.

1 vote

Hello dear readers. Replacing colors in a picture is quite an interesting and addictive activity. Personally, I can spend quite a lot of time on this entertainment. There are several tools that will help in this work, and each of them is suitable for its case.

Today I will tell you how to change the color of an image in Photoshop and how to use it in each specific case. You will like it, I assure you.

It should be noted that I use Photoshop CC, but we will not do anything specific, so you can safely start reading even if you have a simpler version of this program. Not an online service, of course, it is weak and non-functional, but in cases with CS3, 5 or 6 you will not notice discrepancies.

Shall we start?

Simple color correction

The equipment for high-quality shooting is quite expensive, and it does not matter if you do not have it. You can get good pictures with the help of editor programs such as Photoshop. To be honest, I use this opportunity for almost every photo that I post on my blog. I like the colors brighter than what is usually posted on the Internet.

By the way, if you are interested, read the article already published in Start-Luck. I will take a pre-prepared picture to start a story about a simple color correction and move on to work.

I open the tab in the top menu "Image", and then the category "Correction". Take the time to learn from your own experience what Brightness/Contrast, Vibrance, Hue/Saturation and other options you will find in this tab are.

You won't spoil or break anything, and you can always return to the original version by simply refusing to save changes when you close the picture. Just look at how certain tools behave. As they say, what you reach yourself is always remembered better than when everything is explained to you on the fingers.

For example, open the "Color tone" and pull the various sliders, you will immediately see how the picture changes colors and you can build a logical chain between your actions and the result. Don't forget to check the box next to View.

The color balance changes colors more strongly, the setting is more subtle and interesting.

If you want to work with a certain element, that's enough, I have already talked more than once in a simple and understandable language about how to do this with more than 8 tools and methods. I will not repeat myself, it is not difficult to find a publication, just follow the link a little higher.

Now I will use the easiest way - the "Magic Wand". I just click on the object and the desired fragment is selected. Using the tolerance setting, I set the color spread.

As you know, there are many shades of white, blue and any other color. The higher the tolerance number, the more shades from the spectrum the program will determine and highlight with a stick.

Change the direction of the curve and the color becomes different.

By the way, if you want to work with the background in this way, that is, with the area that is outside the selection, then you must first select it, and then select the “Invert” position in the “Select” tab of the top menu.

Running ants are removed using the keyboard shortcut Ctrl + D.

Replacement for contrast

I talked about this method in great detail in the article. « » . Now we will quickly run through the main functions. I will give a little instruction, which will be enough.

This tool is ideal for replacing a bright, eye-catching color in an image. For example, a yellow apple on a white background, a red car in a green forest, or, as it is now, a bright girl in a dark room.

I return to the "Correction" section and select the "Color Replacement" tool here. Using the eyedropper tool, which appears automatically, I select the shade that should change. In this case, I click on the curtain. Then I move the Scatter slider so that the girl becomes almost black, and all other objects have outlines ( I wrote a whole article about how to draw a black background).

Please note that the curtain and the wall should still have outlines, just setting the spread to 200 will not work. Otherwise, the program will not take into account the shades and paint over everything ugly, with a single color. Now I click on the plate with the color at the very bottom of the window, under it is written "Result".

I click on the spectrum and various shades until I achieve the perfect result.

Ready. Without repainting the photo, we got an excellent result. In just a few seconds. Now let's talk a little about the disadvantages. As I said above, it is convenient to use this method if the image is contrasty. To recolor the dress of a particular girl in a different shade, it will have to be selected. I can offer another interesting one, in which much attention is paid to complex objects, for example, hair.

I myself will use the tool "Magnetic Lasso".

Now I transfer the dress to a new layer by pressing Ctrl + J at the same time. ? Read the publication with a detailed story about them, which I recently prepared for beginners.

We return to the “Color Replacement” of the “Correction” section. In this case, the hue will have to be changed using the "Hue", "Saturation", "Brightness" sliders. If I click on the “Result” box, it turns out to be extremely disgusting and implausible.

In my opinion, the shade of the young lady's dress is still far from ideal, and therefore I want to blur it a little. I open the "Filter" tab and select everyone's favorite "Gaussian Blur".

The attire has become less clear, but the shade has somewhat evened out.

As I said, this method works best if there are contrasts, so I'll be satisfied with that, and I'll tell you about the last tool for today.

A quick tool for difficult cases and dramatic changes

I like the Color Replacement brush more than any other tool for a similar task. You can find out about it in the article « » in which I turn the most ordinary girl into a red-haired blue-skinned female smurf.

Finding a brush is not difficult, for this you need to right-click on a regular brush. An additional menu will open in which you can select the desired tool.

I choose a color. Everything is as usual. Window on the right. In this case, black, and then I paint over part of the girl's hair. Note that all shades are preserved.

You can put green.

Use the keys to change the size of the brush.

I can also offer an instructional video on this topic.

Well, if you want to understand the program more professionally and understand exactly how this or that function in the Photoshop program works, then I offer a very useful course " Photoshop for beginners in video format ».


Maximum useful information about tools. That's basically it. Don't forget to subscribe to our newsletter to stay up to date with the latest, most useful and simple information.

See you again and good luck.