How can the colors of a single window be inverted in OS X?
You can use Command ⌘+Option &#x2325;+Control ⌃+8 to invert the video colours of the whole screen.

There's no way to just invert the colours of a single window.