Overwrite/change color palette?

Is it possible to change the color output in a video card with a software?

For example invert all displayed colors or the fly or make everything monochrome?