How to change a specific color in Photoshop. How to replace the color of an object with another in Photoshop in a separate area and throughout the entire picture

Welcome! In this article, we will show you how to change the color of a selected object in photos in Photoshop. You've probably visited the websites of car dealerships, where all the color options of cars are presented, and by clicking, you can see them all, or clothing stores, where you can also see all the color options presented. Naturally, you can photograph the product in all colors, but this is not always possible, and you need to show the entire range. It will not be possible to repaint complex objects with a brush, since this method does not allow you to convey, for example, the texture of clothing or all the highlights on the body of a car. Well, stop pouring water, let's get started!

Changing colors on contrasting objects

  1. First, we need to copy the image layer just in case, so as not to spoil it and accidentally save it. To do this, click on the photo layer and press the keyboard shortcut ctrl+ j. This is the layer we will work with:
  2. Now we need to create an adjustment layer. To do this, click on the “Create a new adjustment layer” button, which you will find at the bottom of the layers panel, and in the list that appears, select “Hue/Saturation...”.
  3. This is the layer with the mask that should appear:
  4. Now we need to change the color in the properties of the created adjustment layer:
    Please note that we are editing the red color in the photo, and select it accordingly. If you have a different color, then you need to choose that one. If the color you need is not on the list, then you should look for a solution in the following methods.
  5. Activate the Eyedropper tool in the properties of the adjustment layer and use it to take a color sample from the area of ​​the photo that you are editing:
  6. The next step is to select the required color using the “Color Tone” slider in the properties of the adjustment layer. You can also edit the saturation and brightness to give the desired result:
    Don't be alarmed if the entire photo begins to change color - this is normal. Then we will do everything right!
  7. Once you have found the desired shade, you need to fill the adjustment layer mask with black. To do this, press the key combination Ctrl+ i, but before that, be sure to activate the layer mask by clicking on it:
    After you fill the mask with black, the photo will return to its original form. By the way, if you want to know what masks are and how to use them, then read the article Working with masks in Photoshop.
  8. Now select the area to which we are changing the color. Selections can be made with a pen P or a magic wand W, if the edges are clear. If the edges are not quite clear, then it will be easier and faster to use a quick selection:
    This is how we selected the editable area:
  9. Now take the brush B, select white and paint the mask in the editable area with white. The required color will appear:
  10. Deselecting Ctrl+ D and look at the result. If you see that there are areas of the photo that could not be properly selected and could not be changed, then do not be upset, since we worked with a mask and everything is easy to edit. To do this you need to take the brush without selection. B with white color and carefully work on them, changing the size of the brush and its hardness. In the end, the result should please you:
    Tip: After you have changed the color, you can change the adjustment color settings in order to change the color to the desired one, without having to do all the manipulations again.

Change the colors of the object to any others

In this tutorial, we'll take a look at the color replacement program and learn how it can quickly change the color of objects in a photo.

We will show you not the most professional, but the easiest and fastest way to change the color in an image. This method doesn't always give the desired result, but it usually works well for simple tasks. It's a simple tool and worth a try before moving on to more complex and time-consuming methods.

Color Replacement Tool

The Color Replacement Tool was first introduced in Photoshop CS, and if you're working in Photoshop CS or CS2, you can find it grouped with the Healing Brush tool.

If you have Photoshop CS3 or CS4, CS5 or CS6, click on the Brush tool icon and hold it until a drop-down list of other tools in the group appears, select “Color Replacement”.

Once you select the Color Replacement tool, your mouse cursor will turn into a circle with a small cross in the center.

You can adjust the size of the circle using hotkeys - brackets [ or ]. The left bracket reduces the size, the right one increases it. To adjust the hardness of the brush, add a Shift keystroke (Shift+left square bracket makes the edges soft, Shift+right square bracket makes the brush harder).

How the Color Replacement tool works:

When you drag the Color Replacement tool on an image, Photoshop continuously scans the color swatch currently under the crosshairs. This is the color that will be replaced with the current foreground color. Any other pixels that surround the round cursor also change color as it moves over the object.

For example, if you place your cursor on a blue color in a photo and the foreground color is red, the color underneath the cursor will change to red in the cursor area. There are several options for customizing the tools in the top bar, but we'll look at that later.

In the Tools palette you can see the current color settings. The default color is black:

To change the foreground color, click on the top square (color swatch) and select any new color from the color palette. Choose green color. Click OK and close the color picker.


Look at the tool palette. The foreground color pattern has changed. Now the foreground color is green. Now, if we paint on the image with the Color Replacement tool, the original color will be replaced with green:

Let's take an example of a photograph of a girl with balloons:


She looks happy with a blue balloon in her hand, but maybe she would like to have a green balloon. Let's see what we can do for her. Using the “Color Replacement” tool, clicking on the ball with the cursor will begin moving inside it. Photoshop begins to replace the blue color with green.


To change the color of the rest of the ball to green, you just need to hold down the mouse button.

If you accidentally go beyond the boundaries of the ball and hit the yellow wall behind it, Photoshop will begin to change the color from yellow to green:

Tolerance

Everything is simple and hassle-free until you reach the edges of the ball. If you look closely, you will notice that the edges of the ball are not completely closed, a blue stripe is noticeable.

We've already mentioned that the Color Replacement tool has several options that you can customize in the Control Panel. One of these parameters is “tolerance”. “Tolerance” determines the sensitivity to the color being replaced. The default tolerance is 30%, which is a good starting point. But this is not enough for our case. We increase the tolerance to 50%, which will allow the Color Replacement tool to affect a wider range of colors:

We have established greater tolerance. Now, let's undo the last step and try finishing the edges again.


We finish processing in the remaining areas and our blue ball magically turns into green, thanks to the “Color Replacement” tool:

Use color from image

In the example above, we randomly selected a new ball color from the color picker in Photoshop. You can just as easily select a color directly from the photo itself. To do this, with the Color Replacement Tool active, press the Alt key and your cursor turns into an Eyedropper Tool.

Click on the area of ​​the photo that contains the color you want to use. Photoshop will make this color the main background color. In the Foreground and Background color icon, the top square changes to the color you selected.

Let's take the color of the girl's blouse:


If you look at the Foreground color swatch in the Tools panel, you'll see that the color you clicked on has become the foreground color:

We can paint the ball with this color again using the Color Replacement tool:


Blend Modes

Blend Modes

The reason the Color Replacement tool preserves volume and texture is because it uses blend modes to blend new colors.
The new color interacts with the previous color and this effect is obtained. You can see blending modes in the top settings menu. There are four of them: hue, saturation, color and brightness (Hue, Saturation, Color, and Luminosity). The default mode is Color.

If you've ever studied color theory, you've probably heard that color is made up of hue, saturation, and brightness. You can choose any blending mode depending on which of these three aspects of the original color you want to affect.

Hue: When you apply Hue mode, only the base color will change. Will not change the saturation and brightness of the original color. This mode is useful for images where the colors are not very intense and it usually produces very little change.

Saturation: The “Saturation” mode only changes the saturation of the original color. Hue and brightness are not affected. This mode is useful for reducing the intensity of a color, or removing color completely.

Color: Color mode is the default and changes hue and saturation. The brightness will remain unchanged. This is the blending mode you will use most often.

Luminosity: Finally, Luminosity mode changes the brightness of the original color to the brightness of the new color. Hue and saturation remain unchanged.

Let's take another photo with balls:


One way to make one balloon stand out is to reduce the color saturation of the other balloons. We will not change the actual color of the balls, but only the intensity of the colors. In the Blending Modes tab, I'll select the Saturation mode.

If we wanted to completely desaturate the balloons, we would set the base color to black, white or gray, but since we want a more subtle effect, we'll just take one of the less saturated colors from the image. While holding down my Alt (Win) / Option (Mac) key, we temporarily switch to the Eyedropper Tool, and click on the color we want to use. We will choose a less saturated yellow color. The color itself doesn't have any meaning since the blend mode won't change the original color. The mode will only affect the saturation:


Select the “Color Replacement” tool and paint on those balls on which we want to reduce the saturation level, making them paler. The brush size can be adjusted using square brackets. If necessary, adjust the tolerance level. In the example below you can see how different the original shade of the ball is from the changed one.

Paint over the other balls. Their saturation decreases. This is what the result looks like:


Brightness Issues

Unfortunately, there are situations in which using the Replace Color tool causes difficulties.

These are cases where there is a big difference between the brightness of the original color and the replacement color. For example, we want to change the hue of the top orange ball to the purple color of the other ball. It seems easy to do, but...

First, let's return all the colors of the balls to their original state. To do this, go to the menu File - Revert. Then take a color sample from the purple ball by clicking on it while holding down the Alt key to switch to the eyedropper.

Set the blending mode to Color. This is the default value. Then we start painting over the orange ball to change its color to dark purple. Here's the result:


Hm. It's definitely purple, but it doesn't quite look like other purple balls, does it? The problem is that our orange ball is much brighter than the purple balls. The set blending mode does not affect the brightness. It only affects color. Let's change the blending mode to “Brightness”/”Luminosity”:

Let's undo all previous actions and return the ball to orange, and then set the blending mode to “Brightness” / “Luminosity”. Now we paint the ball dark purple.


It's safe to say that the result is bad. In the “Brightness”/”Luminosity” mode, the ball became brighter, but it remained orange and lost its structure.
The problem is that there is too much difference in the brightness of objects. The Color Replacement 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 elements in an image, you'll need to choose other color replacement methods.

Let's take another look at the “Color Replacement Tool”.

In the top menu we see three icons depicting pipettes. Each of these icons represents an option for selecting a color sample to work with (Sampling). We look from left to right: test - continuously “Continuous” - set by default; sample - once “Once”; sample - sample background “Background Swatch”. To switch from one option to another, you just need to activate the selected icon.

Let's consider the options.

Test - continuously “Continuous”. In this option, the color selection will be made by the tool continuously while you hold down the mouse button and move the cursor over the image. This option can be used when you need numerous and complex color changes in an object.

With the “Once” test, Photoshop respects the color you clicked on, no matter how long you hover over the image. This option is best for replacing large areas of uniform color.

Sample background “Background Swatch”. You probably won't use this option very often. Here the background color replaces the original color. Only those pixels in the image that match the background color will be replaced. To do this, you need to select a shade from the color palette that best matches the color of the image. This can be done by clicking on the bottom square of the color icon. Adjust the tolerance value if the shade does not suit you.

“Restrictions”/ “Limits”

The next option for the Color Replacement tool controls the location of the pixels to be replaced and is called “Limits”. There are three color detection options: Contiguous, Discontinuous, and Find Edges.

Most often you will use the first two.

The default constraint type is “Contiguous”/ “Contiguous”. In this version, the “Color Replacement Tool” recolors the pixels that are under the cross within the cursor. The tool will not affect pixels that match the selected color but are separated from the cursor by an area of ​​a different color. At least until the cursor is in these zones.

The “Discontinuous” constraint type replaces all pixels within the cursor.

The final type of edge highlighting, “Find Edges,” replaces color in areas that have a tint of the selected color, preserving the outline of the object's edges.

Let’s look at the last option in the top settings menu for the “Smoothing”/”Anti-aliasing” tool. Use this option if you need to smooth the edges of an object's precise outline. If you don't need anti-aliasing, uncheck the box.

Good luck with your processing ;-))

How to change the color of an object in Photoshop?

Probably every girl has thought about changing her hair color at least once in her life. But not everyone decided to do this. After all, a new color can either decorate or ruin the whole image. But how can you check this before painting? Everything is very simple, you just need to use the Adobe Photoshop photo editor.

So, open your photo using the File > Open command or the keyboard shortcut Ctrl + O. Select the hair using the Magic Wand tool (W key).

To do this: set the tolerance, and select the desired part of the photo, alternating the “Add to selected area” (1) and “Subtract from selected area” (2) buttons. If the Magic Wand has selected too large an area, you need to reduce the tolerance.

In the Image menu, select the Correction item and the “Color Balance…” sub-item or press Ctrl + B. In the window that opens, you can change the color of the selected part of the photo (in this case, hair) by adjusting the sliders in one direction or another.

When you get the color you want, click OK. If the hair color turns out to be too dull, or, conversely, too bright, in the Correction item, select the “Brightness/Contrast...” sub-item.

Move the sliders left or right to set the desired contrast and brightness.

Now save the image in a new file, compare it with the old one, and draw a conclusion: do you need to change your hair color? :)

Of course, in Photoshop you can change not only hair color. It could be the color of a dress, a car, the sky... In general, whatever your heart desires!

Are you unhappy with the color of your shirt or hair? Do you want to experiment and maybe change something? All in your hands!
In this tutorial I'll show you how to quickly and easily change the color of any element in your photo.
So, open the image we need.
Personally, I picked this photo:

Now you need to select the area of ​​the image whose color you want to change. In this case, it will be a T-shirt.
Use the tool Lasso and other selection tools ( Straight-line lasso, Magnetic lasso, as well as a tool Quick selection And Magic wand):


In order to highlight the contours as carefully as possible, I recommend zooming in as much as possible.
Don't forget to pay attention to the fact that the outline of the selected area must be closed:


If the areas you want to select are not adjacent to each other, hold down the SHIFT. This will add the selected area to the previous one.
Don't worry if you accidentally go a little beyond the outline, or highlight an unwanted area. We'll sort this out a little later.
So, once you're done with your selection, go back to 100% scale on your image.
Now click on the icon Editing in quick mask mode, which is located in the toolbar directly below the colors:


You will see something similar to my result - the selected area has retained its previous color, but the rest is filled with a translucent red color. This is the quick mask mode:


Then, making sure that the colors White and Black are selected, take the tool Brush, 13 pixels in size, with hard edges:. If you start "painting" on your image black, this means that the sketched areas will be added to the selected area, if white- they will be deleted. This way we can adjust the boundaries of our selection.
To quickly change between white and black colors, you can use the key X on keyboard.
If the brush size is too large, or, on the contrary, is small, adjust it to your liking.
But do not forget that you need to use only hard brushes, as soft ones will make the selection sloppy.
Once everything is ready, turn off the mask mode using the same icon as to activate it.
Now you have a neat, carefully selected area. If you suddenly notice that you missed a spot or detail, go back to the quick mask to fix everything.
Now it's time to play with flowers.
Create a new layer for Hue/Saturation mode using the commands:
Layer - New - Layer.
Next: Image - Correction - Hue/Saturation.
and you can start your experiments!
The main thing is not to overdo it, as in some cases shadows and textural features may be lost, and the image will look unnatural.

There are dozens of ways to change colors in Adobe Photoshop. The easiest and fastest is to use the special command Replace color or “Replace color”. This function is convenient to use when working with any object in a photograph. This command is also useful when replacing the color of several small details scattered chaotically throughout the image. This article describes detailed step-by-step instructions for performing this simple task.

Open the image in Photoshop. Create a duplicate of the main layer. To do this, go to the “Layer” tab in the top menu and select “Duplicate Layer” or press Ctrl+J. Go to the “Image” tab. Select “Adjustments” – “Replace Color”. A dialog box will appear. At the top of it, check the box next to Localized Color Clusters . Below there are 3 pipettes. With the first one selected, click on the area of ​​the object where you want to change the color. It will appear in the top square of the dialog box.


An eyedropper with a plus sign adds an area. Use it when there are unselected areas on the object. Eyedropper with minus – decreases that part of the image that cannot be replaced with color.


Adjust the Scatter setting. If the slider is left at the beginning, only those pixels that exactly match the color of the sample will be replaced. At maximum parameter values, the program will replace all shades of the selected color. Configure the “Replace” option. At the bottom of the dialog box are three commands: hue, saturation, and brightness. Use them to select the color and desired shade to replace. Focus on the square on the right with the inscription “Result”.


Click “OK”. A good effect is obtained in contrasting photographs, especially in the absence of similar shades of changing color. If there are many tones of the selected paint, but you only need to change one area, first select it using the appropriate tool on the taskbar. Thus, changing the color of any object in Photoshop is simple and quick.