Skip to main content
Inspiring
April 30, 2018
Answered

How to edit an image to match a hexadecimal value?

  • April 30, 2018
  • 2 replies
  • 5200 views

Using :

Photoshop CC 2018

Mac OS 10.13.4

MacBook Pro

I can use the color picker tools to see the hexadecimal value of a color in an image, but don't know how to edit an image to match a desired hexadecimal value.

Thanks!

Diane

    This topic has been closed for replies.
    Correct answer Test Screen Name

    The background of your image is not one colour, it is many different colours. Use the Info tool to see this. If it didn't change it, maybe you didn't correctly select the target area.

    2 replies

    Norman Sanders
    Legend
    April 30, 2018

    The image above shows the two portraits superimposed with a mask reveling your Color Sampler points.

    By clicking the Mask on and off and watching the Info Panel you can confirm that both images have the same RGB values.

    Oops! Just saw you marked someone else's response correct already. I'll leave this post up anyway for any value it may have. 

    picchicAuthor
    Inspiring
    May 1, 2018

    Can you tell me the right way to make the backdrop selection for this purpose?

    Norman Sanders
    Legend
    May 1, 2018

    For this image:

    1. Choose the Quick Selection Tool (but don't click on the image)

    2. In the Options bar choose Select Subject

    3. When you see the marching ants, in the Options bar choose Select and Mask

    4. Use the sliders as necessary.

    5. Near the bottom click on Decontaminate colors

    6. In Output to choose New Layer with Layer Mask

    7. In the Layers panel, place a background layer below the masked layer

    and touch up the mask if necessary.

    Norman Sanders
    Legend
    April 30, 2018

    The current hex specification (which must be based on a specific color space, sRGB, for example) in the Color Picker also displays the equivalent RGB values for your color space. Clicking ok after entering the desired hex value, it becomes the Foreground color in the Tools panel. To replace an area in an image with that color, make a Selection of the image area. Choose Edit > Fill with the Foreground Color and the Fill Blending mode set to Color.

    The luminosity of both the current and replacement colors should be similar for this to be successful. For example, it will fail if the current color of the Selection is almost black and you want to replace it with pink. That change would require a more advanced technique.

    If you have a problem, post the image and the RGB original and replacement color values.

    picchicAuthor
    Inspiring
    April 30, 2018