It looks like you're asking about the phrase
In at-will employment states, you can be fired for wearing teal, even if the rule is stupid. But stupid is not illegal. However, if the is enforced arbitrarily (e.g., only against women, only against junior staff, only against one race), you may have a claim for harassment or disparate treatment. frivolousdressorder