Assuming you're using Photoshop, you can duplicate the layer, invert it, and set its blend mode to luminosity. If you don't want the background to change as well, you'll have to make sure the things that you want to change are on a separate layer, or you'll have to touch it up a bit after.