Hiding
under the rainbow is when you get caught for doing something wrong (like
sexual harassment) and then immediately
come out of the closet (i.e. admitting that you are gay). At that point, anyone that says anything derogatory about you is wrong because they are homophobic. See also: Kevin Spacey.