I took a photo of some vegetable powders in small glasses. Now I would like to change the white color to blue or any other color (maybe gradient), so the color of the powders doesn't change (of course... :P) and the new background color would also be noticable on/through glasses.

Is it possible, to make it look really realistic?

Powder photo.

Image will be used for a product sale web banner.

Thank you guys in advance!

  • 1
    Why do you want to change the background color? I think the white really compliments the rainbow shades.
    – Summer
    Commented Oct 14, 2016 at 12:30
  • 1
    Whatever color you choose will have an effect on the perception of the powder colors. The most neutral choices would be black/white or perhaps shades of neutral grey (% pure black).
    – Luciano
    Commented Oct 14, 2016 at 13:35

2 Answers 2


The most safe way would be avoiding color by manually creating a mask on the powders, either by some color selection or by manually painting the mask. by isolating color information, you will end up transforming the powder in a full-black shape that can be cancelled out as a mask. You can do this via selective color or using the selection by color range at the Image > Calculations menu item.


You can easily change the cast of the background using an adjustment layer. First select the white area and include the clear bowls. Select inverse to mask the spices. I used Selective Color (select Neutrals or Whites) and Channel Mixer each alone changes it slightly different. Play around with the settings until you get the desired effect.

I do not necessarily think these are improvements to the white but it does what you asked. Good luck.

Selective Color

Channel Mixer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.