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

    Changing colors in Photoshop is a simple but fun process. In this lesson we will learn how to change the color of various objects in pictures.

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

    I'll show you with a simple example. This way you can change the color of flowers in Photoshop, as well as any other objects.

    Let's take the icon and open it in Photoshop.

    We will replace the color with any other one that interests us. To do this, go to the menu “Image – Adjustments – Replace Color”.

    The Color Replacement Function dialog box appears. Now we must indicate what color we will change; to do this, activate the tool "Pipette" and click on its color. You will see this color appear in the dialog box at the top, which is labeled as "Selection".

    Heading below "Replacement"— there you can change the selected color. But first you can set the parameter "Scatter" in the selection. The higher the setting, the more colors it will capture.

    IN in this case can be set to maximum. It will capture all the color in the image.
    Configure settings "Color Substitutions"- for the color you want to see instead of the one being replaced.

    I made it green by setting the parameters "Color Tone", "Saturation" And "Brightness".

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

    So we changed one color to another.

    Method 2

    The second method, according to the scheme of work, can be said to be identical to the first. But we will look at it in a more difficult image.

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

    As always, we need to indicate 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.

    Go to the menu “Selection – Color Range (Select – Color Range)”

    Next, we just need to click on the red color of the car and we will see that the function has identified it and colored it white in the preview window. White shows which part of the image is highlighted. 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 – Adjustments – Hue/Saturation”.

    A dialog box will appear.

    Immediately check the box "Toning"(bottom right). Now using the parameters "Hue, Saturation and Brightness" you can customize the color. I set it to blue.

    All. The color has changed.

    If there are areas of the original color left in the image, the procedure can be repeated.

    3 way

    There is another way to change hair color in Photoshop.

    Everyone knows that in order to change a photo or picture, you should “go” straight to Photoshop. Given graphic editor capable of working miracles, because in his arsenal there is a huge number of all kinds of tools. All of them are aimed at something for each user.

    By the way, in this application You can not only add brightness, contrast, etc., you can generally change the color in it, say, turn a yellow car into a red one. Moreover, this is done very simply, and does not require any skills or specific knowledge at all. Intrigued? In this case, I think the topic of how to change the color of an object in Photoshop will be interesting for you.

    Replace color

    There are several ways to “conjure” color in Photoshop, and in this material I will talk about the two most popular ones. The first method uses the Replace Color tool, and here's how it works in practice:

    Hue/Saturation

    I bring to your attention another way to change colors. After opening the image in the layers palette, click on the small icon at the very bottom in the form of a half-filled circle, and then select “Hue/Saturation”. Next, select the color that will be replaced. Next, use the eyedropper cursor to click on this color. Now move the slider in the “Tone” field until you get the desired shade, do not forget to adjust the brightness and saturation.


    Now activate the layer mask. Using a black brush, go over those areas where color replacement is not required. Save the changes and enjoy the result.

    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 a color swatch located in at the moment under the cursor cross. This is the color that will be replaced with the current foreground color. Any other pixels that surround round cursor, also change color as it moves across the object.

    For example, if you position the cursor at blue in the photo, and the foreground color is red, then in the cursor's area of ​​action, the color below it will change to red. There are several options for customizing the tools in top panel, 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. 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 is now 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 the blending modes in top menu installations. 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 decolorize the balloons, we would set the base color to black, white or gray, but since we want a more subtle effect, we'll just go with one of the lesser ones. rich 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. Brush size can be adjusted 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 when there is big difference between the brightness of the original color and its replacement. For example, we want to change the hue of the top orange ball to purple another ball. It seems easy to do, but...

    First, let's return all the colors of the balls to original condition. To do this, go to the menu File - Revert. Then we take a color sample from the purple ball by clicking on it with 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 is 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. Set mode mixing does not affect brightness. It only affects color. Let's change the blending mode to “Brightness”/”Luminosity”:

    Let's cancel all previous actions and return the ball 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 simply 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 edges of the object.

    Let's consider last option in the top menu of the “Smoothing”/”Anti-aliasing” tool settings. 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 Recolor Anything and Everything in Photoshop

    Sofia Skrylina, teacher information technology, St. Petersburg

    The Photoshop graphics editor has a huge number of tools that can be used to recolor various objects. Some of them require preliminary selection of fragments, others do not require the use of selection tools, affecting only certain colors images. In this article, we will only work with the background or regular layer, without using any fill layers or layer blend modes.

    Color Replacement Tool

    Tool Color replacement(Color Replacement) is in the same group as tools Brush(Brush) Pencil(Pencil) and Mix brush(Mixer Brush) and is intended for repainting image fragments. This tool has only four blending modes: Color tone(Hue) Saturation(Saturation), Chroma(Color) and Brightness(Luminosity). Modes are used to repaint fragments Chroma(Color) and Color tone(Hue). The first mode provides a brighter shade, so when using it you should choose shades of the color applied to the object that are much darker than in the second mode. So, in Fig. 1 shows an example of repainting the iris of the eye green in one shade: R=7, G=95, B=17. The first result was obtained in blend mode Chroma(Color), the second is in mode Color tone(Hue).

    a

    b

    c

    Rice. 1. Results of repainting the iris with the Color Replacement tool: a - original image; b — Color mode; c — Color tone mode

    The tool properties panel has a number of other parameters (Fig. 2):

    - All pixels(Discontiguous) - the color is replaced wherever it occurs on the path of the pointer,

    - Adjacent. pix(Contiguous) - colors that are similar in color to the one under the mouse pointer are replaced.

    - Edge highlighting(Find Edges) - when replacing colors, clear edges of objects are preserved at the same time;

    • parameter Tolerance(Tolerance) sets the sensitivity of the instrument;
    • checkbox Smoothing(Anti-alias) sets smooth borders when replacing colors, set by default.

    In the example considered, no preliminary selection of the object was carried out, but if you are working with more complex object, which requires brush processing in several stages using several blending modes, then, of course, it is first necessary to select the object.

    Note. Basically, instead of a tool Color replacement (Color Replacement) can be used Brush (Brush), which has the same blending modes: Chroma (Color) and Color tone (Hue).

    Beyond the Tools Color replacement(Color Replacement) and Brush(Brush) tools are used to repaint fragments color correction. To call them use the menu Image(Image) -> Correction(Adjustments). Let's take a closer look at these tools.

    Dialog box « Hue/Saturation »

    For changing the color of an object in a dialog box Hue/Saturation(Hue/Saturation) is answered by the slider Color tone(Hue). When selecting an item All(Master) replaces all colors in the selected area. At the same time, you can specify one of the base colors of the RGB and CMYK models, which will be affected by the tool (Fig. 3). In this case, if the object is the only one in the image consisting of one group of colors, there is no need to first select it.

    Rice. 4. The original image of the girl (a) and the result of repainting and tanning (b)

    So, in Fig. 4, to change the color of a sweater from blue to lilac, there was no need to select it; it was enough to select the blue color to be replaced (see Fig. 3). But to color the remaining objects, they were pre-selected.

    Note. In the above example, a tool was used to dye the hair and jacket Hue/Saturation (Hue/Saturation), and for applying tan - tools Replace color (Replace Color) to darken the skin tone a little, and Color replacement (Color Replacement) to repaint the leather brown.

    Don't forget to use the remaining two sliders when replacing colors: Saturation(Saturation), which allows you to increase or decrease the saturation of the selected color, and Brightness(Lightness), darkens or brightens the selected color.

    Replace Color Dialog Box

    Team Replace color(Replace Color) replaces the color in the image that is selected using the eyedroppers. The first click with the eyedropper selects the color to be replaced, subsequent clicks with the “+” or “-” sign specify the range of colors (Fig. 5). Parts of the image that match the selected colors appear white in the preview area. In addition to the eyedroppers, a slider is used to expand or narrow the selected shades Scatter(Fuzziness).

    Using sliders Color tone(Hue) Saturation(Saturation) and Brightness(Lightness) determines the color of the replacement. In addition, the replacement and replacement colors can be selected from the color picker, which is accessed by clicking on the color swatch. In most cases, preliminary selection of fragments is not required.

    Note. Please note that the dialog box Replacecolor (Replace Color) is very similar to the selection tool Color range (Color Range), which selects a fragment by group of colors. It turns out that the dialog box Replace color (Replace Color) combines the functions of two tools: the selection tool Color range (Color Range) and color replacement tool Hue/Saturation (Hue/Saturation).

    Best results when using a dialog box Replace color(Replace Color) is achieved if the replaced color is close to uniform. Otherwise, noise appears in the image, which you have to get rid of using additional tools. An example of using this tool for repainting tulip petals is shown in Fig. 6.

    a

    b

    Rice. 6. The original image of a tulip (a) and the result of its recoloring in the Replace Color dialog box (b)

    Selective color adjustment

    Selective color adjustments are made in the dialog box Selective correction colors(Selective Color) (Fig. 7), which allows you to selectively change the volume of a composite color in any of the primary colors without changing the other primary colors.

    This tool can be used to recolor parts of an image while maintaining the base color. For example, red color can be changed to any other color that contains red: from yellow (a mixture of red and green) to lilac (a mixture of red and blue). But, for example, turning red into blue will not work. This tool is also indispensable in situations where you need to remove a color cast created by a light source, such as a regular table lamp(Fig. 8).

    a

    b

    Using Lab Mode

    The Lab color model is based on three parameters: L— brightness (Lightness) and two chromatic components — a And b. Parameter a varies from dark green through gray to purple. Parameter b contains colors from blue through gray to yellow. This circumstance can be used to quickly recolor image fragments by inverting the straight line in each channel (provided that this object is easy to select or all other colors in the image are close to neutral). To invert a line, simply drag the top right point of the line down and the bottom left point up.

    a you can get the following results:

    • red and burgundy colors are repainted green;
    • green becomes light brown.

    When inverting the straight line in the channel b You can get other results:

    • red becomes purple or lilac depending on the original hue, and purple and lilac become red;
    • yellow turns to blue.

    When inverting the straight line in both channels simultaneously, the following results are obtained:

    • red is repainted into blue, the shade of which depends on the original shade of red;
    • blue and magenta become green.

    Note. Because color model Lab allows you to display more colors than RGB model, converting an image from the Lab model to RGB and back does not affect its quality. Therefore, the transfer can be carried out as many times as you need.

    Now let's look at a few examples. In Fig. Figure 9 shows the original image of a jug with a lid and a red handle.

    First you need to switch the image to Lab mode by running the command Image(Image) -> Mode(Mode) -> Lab. In this case, a tool is quite suitable for highlighting the lid and handle Quick selection (Quick Selection).

    a

    b

    c

    Rice. 10. Result of repainting fragments: a — green by inverting the straight line in channel a; b — to lilac color by inverting the straight line in channel b; c — to blue by inverting the straight line in channels a and b

    In the dialog box Curves(Curves) (it is called by the combination Ctrl keys+M) from the list Channel(Channel) select the channel a and invert the straight line (Fig. 10 A).

    If you invert the straight line in the channel b without changing the position of the straight line in the channel a, we get a lilac color (Fig. 10 b). Inversion of the straight line in both channels will give a blue color (Fig. 10 V).

    Image colors may fade during repainting. You can also increase their saturation in Lab mode, without resorting to the dialog box Hue/Saturation(Hue/Saturation). To do this, it is necessary to increase the angle of inclination of the straight line in both color channels. In Fig. Figure 11 shows the original image of green leaves. When inverting the straight line in the channel a we get a faded brown color (Fig. 12).

    To increase the saturation of colors and transform the summer landscape into autumn, let’s change the channels a And b angle of inclination of the straight line (Fig. 13).

    As you can see, the Photoshop graphics editor offers a truly huge selection of tools for recoloring image fragments. Which of the available tools to use is up to you.

    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? It's very simple, you just need to use a photo editor Adobe Photoshop.

    So, open your photo using the File > Open command or the keyboard shortcut Ctrl + O. Select the hair using the " tool Wand"(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!