Open System Preferences > Accesibility > Display and select Invert colors
I believe you can set this as a shortcut, which is under the accessibility tab under System Preferences as well. Someone correct me if I'm wrong? Not at my mac right now to check.
Edit: Mendel beat me to it