Under new guidelines to be released this week by the New York City Commission on Human Rights, the targeting of people based on their hair or hairstyle, at work, school or in public spaces, will now be considered racial discrimination.

The change in law applies to anyone in New York City but is aimed at remedying the disparate treatment of black people; the guidelines specifically mention the right of New Yorkers to maintain their “natural hair, treated or untreated hairstyles such as locs, cornrows, twists, braids, Bantu knots, fades, Afros, and/or the right to keep hair in an uncut or untrimmed state.”

In practice, the guidelines give legal recourse to individuals who have been harassed, threatened, punished, demoted or fired because of the texture or style of their hair. The city commission can levy penalties up to $250,000 on defendants that are found in violation of the guidelines and there is no cap on damages. The commission can also force internal policy changes and rehirings at offending institutions.

The move was prompted in part by investigations after complaints from workers at two Bronx businesses — a medical facility in Morris Park and a nonprofit in Morrisania — as well as workers at an Upper East Side hair salon and a restaurant in the Howard Beach section of Queens. (The new guidelines do not interfere with health and safety reasons for wearing hair up or in a net, as long as the rules apply to everyone.)