Invert the colors of a CSS stylesheet

... Or anything that contains hexadecimal or rgb declarations.