Changing colors according to background