How to change black color in photoshop. Change the color of objects in Photoshop

Hello again, my dear readers. Today I would like to tell you how to replace a color in Photoshop with another one in a separate area and even in the whole picture. After all, you probably often had a desire to repaint something to see how it will look. But in order not to be mistaken, first it is better to do it on some kind of layout or in a photograph. Then you will already know how and what it looks like. Let's see how to change the color of an object to a specific one using the example of repainting the car in the picture.

First way. Color swap

Let's consider the simplest case when our background is completely different from the object itself, i.e. cars.

  1. So, load a photo, picture or drawing into our editor and now go to the familiar "Image" menu. Then select the item "Correction", and then "Replace color".
  2. A color replacement window has opened in front of us. What are we doing here? First, let's make sure that the active tool in this window is a regular eyedropper (no marks). Now just left-click somewhere on the hood of the car.
  3. As you can see, in the window we have a small drawing. What is colored light shows us which area will undergo a color change. Now start dragging the "Color Tone" slider. See? Some of the color starts to change when you move this tone. Don't be upset that not the whole car is painted over. We'll fix that.
  4. To get started, hold down the left mouse button on the "Scatter" slider and drag it up. Just try to make sure that the car is painted over as much as possible, and the background remains intact. In this case, there are no yellow shades against the background, which allows me to set a maximum spread of 200.
  5. Has the desired object changed almost all the color, but not completely? Again, it doesn't matter. Activate the internal eyedropper + tool and left-click on those parts of the car where there are unpainted areas in the picture.
  6. Voila!) As you can see, everything worked out and even our background was not damaged. And by the way, you can still move the sliders "Hue", "Saturation", "Brightness" to achieve the desired hue.

Look. It looks like it should be. And this function can be used in different areas, for example, to replace the color of clothes, or to give an unusual but specific shade to vegetables or fruits. In! Try making a blue watermelon. Trust me. It's easy, very interesting, and useful to reinforce.

Correcting misunderstandings

Let's look at a slightly more complicated case. Let's say I again want to change the color of the car, but this time a different one. As you can see, the color of the car is the same as in the background. Well? Let's do everything the same as above and see what we get.

And we are bad at it, the background is so similar to the color of the car that neither the "Pipette-", nor the reduction of the scatter help. If we want us to have purple, then we will also have similar mountains. What to do?

In such difficult situations, you will have to work a little with pens. In fact, there is nothing terrible here. You just have to use the familiar to you. Yes Yes. Using pens, we erase failed painted objects or the background, thereby leaving only the object itself with a certain color, i.e. in our case, a car.

Even better, before you start changing the color, duplicate the layer and perform all the actions on the created copy. And unnecessary details can be erased with the usual. It will be better if you suddenly want to change the color later.

Second way. Blending mode

Well, since we are here talking about repainting a car in photoshop, then I cannot but mention another good way to accomplish this action. True, here you also have to work with pens, since you will have to change and paint everything in places. But then we can easily replace the color in Photoshop with any other.

Let me load the same car as above.

  1. We take and how we would like to paint over this machine. Well, let's say I want to see it green, then I will choose this particular color.
  2. Now create a new layer by pressing the keyboard shortcut SHIFT + CTRL + N. And then take a look at the layers panel. See there are blending modes? The default is the usual one, but you open the drop-down list and select the "Color" item (By the way, the "Color tone" mode is also suitable, so you can choose it too). Excellent. Well done.
  3. Now choose the size, shape and hardness of the brush, and off you go! We paint the car. Just carefully so as not to hurt too much. Well, if you hurt, then fix it with an eraser, it's okay.
  4. And now, if you want to change the color that you cast, you need to go to our again familiar menu "Image" and there select "Correction" - Hue / Saturation... But I advise you to immediately use a simple key combination CTRL + U.
  5. Well, in the newly opened window, you can also move the sliders for hue, saturation and brightness in order to change the hue. It's simple.

Well, how do you like the lesson? Was everything clear and interesting? I hope that yes. Personally, when I learned about changing the color of an object in Adobe Photoshop, I was absolutely delighted. If, of course, something is not clear, then you can always clarify or ask. I will be glad to help as much as possible.

I would also advise you to watch cool video course on photoshop... The video lessons are simply awesome, the course goes from easy to difficult, everything is told in human language, nothing is missed and at the same time, no extra “water”. Everything is on the shelves. So be sure to check it out.

Well, I say goodbye to you today. I will be glad to see you in my other articles. Well, in order not to get lost, be sure to subscribe to updates on my blog. I will not spam - everything is only on the case, honestly. Well, you practice. See you in other tutorials. Bye Bye!

Best regards, Dmitry Kostin.

In this Photoshop tutorial, I'll walk you through all about the Color Replacement Tool. This tool is able to change the color of an image object without much fuss or hassle.

You may be surprised that there are many similarities between the Background Leaf and Color Swap tools, although they seem to be completely different tools in their purpose. Both of these tools use the same technique to detect pixels in an image that need to be changed. The only difference is that the Background Eraser removes these pixels, and the Replace Color tool changes their color to another.


The Color Swap tool does not use the most professional tint changes and may not always give you the results you want. But it is good for simple tasks like changing the saturation and hue of objects. Let's see how it works in practice.


(Color Swap) was first introduced in Photoshop CS, and if you're working in Photoshop CS or CS2, you can find it in the group along with the Healing Brush tool (Healing Brush)... Press and hold the Healing Brush icon in the toolbar (Healing Brush)to select the Color Swap tool from the drop-down list (Color Replacement Tool).

If you have Photoshop CS3 or CS4 like mine, click on the Brush tool icon (Brush) and hold it until a drop-down list of other tools in the group appears, select "Replace Color".



After selection, the cursor will change to a circle with a cross in the center. The background eraser has the same cursor shape.



It is convenient to adjust the brush size using the square brackets keys [or]. The left bracket decreases the size, the right one increases. To regulate hardness (hardness) brushes, add pressing the Shift key (Shift + Left Square Bracket makes the edges soft, Shift + Right Square Bracket makes the brush harder).


When you drag the Color Replacement Tool on your image, Photoshop continuously scans the color swatch currently under the cursor cross. This is the color that will be replaced with the current foreground color. (Foreground)... Other pixels included in the area of \u200b\u200bthe round cursor are also subject to color changes as it moves over the object.


For example, if you position the cursor over an object's blue color and the foreground color is red, the area under the cursor changes to red. In the top menu, you can customize the operation of the tool in different ways, but we will look at these details later.


The foreground and background colors icon is at the bottom of the toolbar. By default, the foreground color of the program is black.



To change the foreground color, click on the top square (color sample) and pick any new color from the color palette. I will choose green. Click OK when done, closing the palette.



If you look again at the foreground and background color icon, you will see that the top square is the color you selected. (I have green)... Now, if I paint on the image with the Color Swap tool (Color Replacement Tool)then the original color will be replaced with the foreground color (green).



Let's take a photo of a girl with a balloon as an example.



She is happy, but wants her ball to turn green. What can we do to achieve this? Select the "Color Replacement" tool and, by clicking on the ball, start moving inside it. Since the foreground color is exactly green, the blue color of the ball will change to green when you drag the cursor inside the object.



Continue changing the color of the ball by keeping the mouse button pressed while moving the cursor until we paint over the entire ball.



If suddenly you went beyond the boundaries of the processed object (ball) and touched on a nearby area, the Color Swap tool (Color Replacement Tool) will also change these pixels to green.



If you accidentally went beyond the bounds of the object, simply cancel the previous step by pressing Ctrl + Z on the keyboard, or cancel several previous steps by pressing Ctrl + Alt + Z.

Tolerance / Tolerance (Tolerance).

Everything seems to be going fine until it comes to handling the edges of the object. If you look closely, you will notice that the edges of the ball are not completely closed, a blue stripe is noticeable.



At the beginning of the tutorial, I mentioned that the Color Swap tool has various options that you can adjust in the top preferences panel. One of these parameters is Tolerance or Tolerance (Tolerance)... Tolerance determines how sensitive the tool is to the color it replaces. By default, the program's tolerance for the Color Swap tool is 30%, but for our case this is clearly not enough. Increase it to 50%, which will affect a wider range of colors, and again draw around the edges of the ball. Now these areas are also changed completely to the foreground green.




I will complete the work on the other areas of the balloon by increasing the Tolerance value a little more. (Tolerance)... Here is such a magical transformation.


Choosing a color from the image.

In the previous example, I selected the foreground color for the balloon using a color palette. But, you can choose a color swatch from image elements, for example, a girl's blouse. To do this, with the active tool "Replace Color" (Color Replacement Tool), press the Alt key and your cursor takes the form of an eyedropper (Eyedropper Tool).

Now, click with the eyedropper in any area of \u200b\u200bthe photo, the color of which you want to sample for future replacement. Look at the icon for the foreground and background colors and you will notice that the top square has taken on the exact color you selected.


I liked the pink color of the blouse, and that's what I'll choose.




Now, I will run the tool over the ball again so that it turns pink.



Note the significant advantage of the Color Swap tool (Color Replacement Tool) in front of a regular brush (Brush)... After all, by changing the color, the ball retains its volume, texture and ratio of light and shadow, which would be impossible with the use of the Brush (Brush)... The object would just become flat with normal painting.

Blending modes (Blend Modes).

The reason the tool is able to change the color of an object without losing its texture is because it uses different blending modes. The overlay color interacts with the previous color to create this effect. You can see these modes in your upper settings menu, there are four of them: hue, saturation, color and brightness (Hue, Saturation, Color, and Luminosity)... By default, the program is set to Color (Color)



If you've ever read about color theory, you know that color is a combination of three components: hue, saturation, and brightness. You can choose any blending mode depending on which of these three aspects of the original color will be affected.


Tone Mode (Hue): Only the base color itself changes, but saturation and brightness remain unchanged. This mode is suitable for images where the color is not very intense because the changes are subtle.


Saturation mode (Saturation): Only saturation changes, but hue and brightness remain unchanged. This mode is useful for reducing the intensity of a color or removing a color entirely.


Color Mode (Color): Default setting and changes the hue with saturation. The brightness remains unchanged. Usually used more often than other modes.


Brightness mode (Luminosity): Changes the brightness of the original color to the blend color. Hue and saturation do not change.


For the next example with blend modes (Blend Modes) I chose the balloon photo again. In the picture, the orange ball seems to be trying to fly away higher than all the others, let's work with it.



One way to make the ball stand out from the whole group is to reduce the saturation of the rest of the balls. In the Blending Modes tab I will select the Saturation Mode (Saturation).



If I wanted to discolor the balls altogether, I would choose white, gray or black as the main color. But I want the effect to be more subtle. To do this, I will take a color swatch from a less bright ball by holding Alt and clicking with the eyedropper (Eyedropper Tool) on him. Why am I taking a sample from the yellow ball, since I am going to work with the orange one? The point is that I need a sample of the saturation of the object, not its hue. When blending mode "Saturation" (Saturation) only the saturation will change, not the tone of the ball being processed.



Now, having selected the Color Replacement tool, we begin to draw on those balls on which we want to lower the saturation level, making them paler than usual. Adjusting the brush size (in square brackets), if necessary and the level of tolerance. In the example below, you can see how different the initial shade of the ball is from the modified one.



Continue painting over all the balls to select the topmost one.


Brightness problems (Brightness).

There are some difficulties with the Color Swap tool (Color Replacement Tool) in cases where there is a large difference between the brightness of the original color and the replacement color. Let's say I wanted to change the shade of the top orange ball to the purple color of another ball from the bunch. Everything, it would seem, is simple enough? But…


First, we will return all the colors of the balls to their original state. To do this, go to the File-Check In menu (File- Revert)... Now, take a color swatch from the purple ball by Alt-clicking on it to switch to the eyedropper.



In the top menu, set the blending mode to "Color" (Color) default. Next, I will paint over an orange ball to change its color to purple. Here's the result:



Hmm ... It's purple, of course, but its shade is not like the other purple balls in the bunch. The problem is that our orange ball is much brighter than the purple balls. Our set blend mode does not affect brightness, affecting only color.


Let's try to make our ball brighter by changing the blending mode of the Color Swap tool to Brightness (Luminosity).



I reversed the previous steps to return the ball to its original orange color. Now, with the "Brightness" blending mode (Luminosity) Paint over the ball in dark purple.



Well! Everything went wrong. The Brightness mode, of course, made the ball brighter, but it's still orange and besides, the texture of the object has disappeared. The problem here is that there is too much difference in brightness between objects. The Color Swap tool is great for simple tasks where you just need to change the hue or saturation of a color, but if there are too many differences between the brightness of two image elements, then you need to choose other methods.



In the top menu, you can see three icons depicting eyedroppers. Each of the three options represents a specific way of choosing a color swatch to work (Sampling)... Let's list them from left to right: sample: continuous (Continuous), it is set by the program's default; sample: once (Once); sample: background sample (Background Swatch)... To switch between the three options, simply activate the selected icon.



Let's consider these options in more detail.


Sample: continuous (Continuous)... With this option, the color selection will be carried out by the tool continuously, while you hold down the mouse button and drag the cursor over the image. This option is good when multiple, complex color changes are required in an object.


Single-shot (Once) Photoshop respects the color selected with a single mouse click, no matter how long you move the cursor over the image. This setting is best for replacing large areas of uniform color.


Sample background (Background Swatch)... You won't be using this parameter as often. Here the background color replaces the original one. Only those pixels that match the background color will be replaced in the image, so you need to select a shade in the color palette that best matches the color to the image by clicking on the lower square of the foreground and background color icons. Try adjusting the Tolerance value if your hue is not quite close to the original.



The next option in the Color Swap tool settings controls the location of the replaced pixels and is called Constraints. (Limits)... This option has three color detection options: adjacent pixels (Contiguous), non-adjacent (Discontinuous) and edge selection (Find Edges).


Of the three existing ones, you will often use the first two.



By default, the application is set to the type of restriction adjacent (Contiguous)... With this type of constraint, the Color Swap tool (Color Replacement Tool) repaints pixels within the cursor, namely under the cross. The impact of the tool will not affect in any way those pixels that correspond to the selected color, but are separated from the cursor by an area of \u200b\u200ba different color. Of course, unless you physically move the cursor to these zones.


Non-contiguous constraint type (Discontinuous) replaces all pixels within the tool cursor.


The last type of edge selection (Find Edges) replaces the color in tint areas of the selected color, while maintaining the outline of the object's edges.


And, the last option in the upper menu of the "Smoothing" tool settings (Anti-aliasing)... Activate it if you need smoothed edges of the image, if you want precise outlines of the object, on the contrary, uncheck the box.



That's probably all I wanted to tell you about this essential tool. I hope that the skills in working with "Color Swap" will be useful to you more than once.

37631 ,

When editing images in Photoshop, it is often necessary to change the color of an object or part of it, and do this so that it exactly retains its texture, shadow, transition effects and other attributes. For obvious reasons, simple recoloring with a brush is not applicable here, this method is only valid when working with solid objects.

When replacing the color of textured or non-uniform objects in color, you cannot do without using additional tools. So, how to replace the color of an object in Photoshop.

Replacing color with changing layer blending mode

The easiest way to replace a color in Photoshop is to use a blend mode. Now we will not analyze how exactly the interaction of colors works when using different modes, it is better to get down to business right away. In our example, we will change the color of the inner circle of the drawn gear. It is now blue, but we want it to turn red while retaining all of its gradients and effects.

Open the images in Photoshop, create a new layer and change its blending mode to.

Select the desired color in the palette and start painting with a regular brush directly over the object. Isn't it too simple?

Yes, if the areas adjacent to the edited object are black, white or gray (any gradation). In all other cases, the area to be recoloured will first need to be selected with a lasso, a magic wand or by applying a mask.

Replacing color by color correction

This method is more suitable for replacing the color of objects that have a more or less uniform tone, for example, clothes, flowers, car bodies, etc. Open the image in Photoshop and choose from the menu Picture -> Correction -> .

In the window that opens, take an eyedropper and click on the color that you intend to replace, after which it will immediately appear in the upper part of the window.

Then click on the square with the color (Result) at the bottom of the dialog box and in the palette that opens, select the desired color.

Changes can be viewed in real time. For a more precise definition of the recoloured object, you can use the scatter and eyedropper option «+» and «-» allowing you to add and remove adjacent areas.

Replacing color with a custom brush

Recent versions of Photoshop have a special brush that allows you to replace a selected color, including neutral, with any other. It is located in the same group of tools as a regular brush. The essence of its work is to replace the color of adjacent pixels, the error of which is determined by the user. So, with the admission 1 percent only one specific color will be replaced, which will fall into the focus of the brush.

With admission 30 percent the brush will replace the color of not only those pixels that will be in its focus, but also adjacent ones that have a similar color shade. When 100 percent all colors will be replaced. The main difficulty when working with a brush Color Swap the fact that the user has to select the admission empirically. As in our opinion, 14-17 percent for a start it will be enough, if necessary, this threshold can always be raised.

In Photoshop, it is very easy to recolor any object, for this it is enough to use the color tone and saturation correction, but for coloring neutral colors - black and white, such manipulations will not be enough and there are some nuances. Let's take a closer look at this "problem".

Paint black

Let's start by painting in black, everything will be very simple here! To color a black object in the image, select the layer of this image in the layers panel by clicking on it 1 time with the left mouse button and select "Image" - "Correction" - "Hue / Saturation" in the top menu of Photoshop, or simply press the Ctrl key combination + U. After this action, a window with the hue and saturation settings will open and in this window you must put a tick on the "Toning" item, and then simply select the desired color using the sliders. If you do not check this box, you will not be able to change the tone of the black color.

It is important to play with the Saturation slider, choosing the most realistic look, not just the color tone. This is the whole secret, many simply do not know, many forget about this tick.

For high-quality painting of an object, in this case a car, it is necessary to paint each of its elements separately, having previously selected it. To do this, take the Pen tool, outline the car part, for example the bumper, then right-click and select "Select Area". Next, in the pop-up window, click "Ok", while the feathering radius should be equal to zero.

After that, we proceed in the above way: in the top menu, select "Image" - "Correction" - "Hue / Saturation", put a check mark and adjust the required color tone and saturation.

And such actions must be performed with all the necessary parts of the car: bumper, fenders, etc.

Paint white

With white, the situation is a little more complicated than with black, it is more difficult in the sense that it is not enough to just put a checkmark for coloring, but a number of manipulations are required.

To begin with, as in the case of the car, we need to select the part of the object that we will repaint, namely the girl's coat. For selection it is better to use the Pen tool, as in the first case. For example and clarity, I have selected not all coats, but only half. After that, you need to copy the selected area to a new layer, for this, select the "Selection" tool in the left menu and right-click on the selected object. Next, in the tab that opens, select the item "Copy to a new layer" and we will have a new layer in the layers panel with the cut fragment of the coat.

After that, we need to create another copy of the layer with the cut fragment, for this we right-click on the layer with the fragment in the layers menu and select "Duplicate layer", after this action a copy of the layer with the fragment of the coat will appear in the layers panel.

Now select the coat fragment itself in the upper layer, for this hold down Ctrl and left-click on the upper layer and you will immediately see that the fragment has become selected in the workspace. The next step is to paint over this selection with the required color, you can do it simply with a brush, you can use the Fill tool, no difference. I painted it orange with the Paint Bucket Tool.

Only the required object needs to be painted, the buttons and hand do not need to be painted. After that, in the right menu of layers, our layer with the painted fragment of the coat needs to select the overlay "Color".

Now we make the upper layer with the colored fragment overlay the lower layer, to do this, hold down the Alt key and move the cursor between these layers until the icon (down arrow) appears and click the left mouse button and the upper layer becomes an overlay of the lower one.

Then select the bottom layer with the unpainted fragment by clicking on it in the layers panel with the left mouse button, and at the bottom select the icon to create an adjustment layer and select "Curves" from the menu that appears.

Color swap is a very simple, but extremely useful and interesting function of Photoshop (Photoshop). You can change colors on an existing image / object both in automatic and manual mode. The automatic method saves time and allows you to quickly recolor a contrasting object, even if it has a complex texture. Manual mode is used when you need a high-quality result on a complex picture with low contrast.

In this tutorial, we will figure out how to replace a color in Photoshop with another with 3 different methods.

Method 1: change the color of a simple object

To simplify the process, you can use automatic algorithms from Adobe. Built-in function called "Replace Color", she Replace Color, in the Russian version, will do everything herself.

Let's analyze the tool in a simple, solid color image.
Open the file with a simple drawing in Photoshop.

Let's change the color of the object to another one we need. Click on the tab "Picture", select item "Correction", farther - Replace Color.

A window will open allowing you to select and change the color. We activate the tool "Pipette" and grab it the color that needs to be replaced. In the window part "Selection" the automatically generated object mask is displayed. The part of the image where the color change will take place is highlighted in white.

Slider "Scatter" allows you to precisely set the boundaries of the image, where the color palette will change.

At the bottom of the window there is a sub-item "Replacement"... This is where the existing color changes to a new one. Let's set the color we are interested in. The result can be adjusted using the sliders "Color tone", "Saturation" and "Brightness".

To apply the changes, click "OK" and enjoy the finished image.

Method 2: change the color of the car

This method is almost identical to the previous one in terms of the algorithm of work, but to reveal all the subtleties of the work, let's take an image with a more complex color scheme. This image has halftones, highlights and shadows. We have selected a photo of the car:

The first step is to explain to the program what color to change. To do this, in the tab "Selection" choose "Color range".

With the active tool, click on the part of the image (yellow in our case) that we will change. In the preview window, you can see how Photoshop created a mask based on our selection.

Expose the slider "Scatter" to such a value so that all the necessary image details fall into the masked zone and click "OK"... You should get a neat selection of the desired area.

Now go to the menu "Picture", select item "Correction"Hue / Saturation.

In the lower right corner, set a checkmark opposite the item "Toning"... This will allow you not to lose light and shade when painting the image with a new color. Further regulators "Color tone", "Saturation", "Brightness" we achieve the desired color.

After achieving the desired result, press the button "OK" and admire the result.

Method 3: Change hair color in Photoshop

Part of an image with a complex texture, such as eyes or hair, is easiest to recolor manually using a special adjustment layer.
Let's open the selected image / photo (we chose a photo of the beautiful Natalie Portman) in Photoshop.

Then create an empty layer on top of the original. Change Blend Mode on "Chromaticity"

Choose the desired color on the palette:

Then the tool "Brush" paint over the desired areas of the image.

It's okay if you accidentally climb into the wrong area when painting. Tool "Eraser" with a hardness of 15-20%, carefully remove all flaws.

After you have painted over the entire hair area of \u200b\u200bthe unique Portman, you need to move the fill slider from 100% to 40%, so that it looks more natural.

This method is the most labor-intensive, but it allows you to achieve a natural color on complex objects, such as eyelashes and tree leaves. Now let's compare Natalie Portman's initial photo with our final processed version.