Starbucks workers in Colorado and two other states took legal action against the coffee giant Wednesday, saying it violated the law when it changed its dress code but refused to reimburse employees who had to buy new clothes or remove piercings.

The employees, who are backed by the union organizing Starbucks’ workers, filed class-action lawsuits in state court in Illinois and Colorado.

Workers also filed complaints with California’s Labor and Workforce Development Agency. If the agency decides not to seek penalties against Starbucks, the workers intend to file a class-action lawsuit in California, according to the complaints.

Starbucks didn’t comment directly on the lawsuits Wednesday, but the company said it simplified its dress code to deliver a more consistent experience to customers and give its employees clearer guidance.

“As part of this change, and to ensure out partners were prepared, partners received two shirts at no cost,” the company said Wednesday. Starbucks refers to its employees as “partners.”

Starbucks’ new dress code went into effect on May 12. It requires all workers in North America to wear a solid black shirt with short or long sleeves under their green aprons.

Shirts may or may not have collars, but they must cover the midriff and armpits.

Employees must wear khaki, black or blue denim bottoms without patterns or frayed hems or solid black dresses that are not more than 4 inches above the knee. The dress code also requires workers to wear black, gray, dark blue, brown, tan or white shoes made from a waterproof material. Socks and hosiery must be “subdued,” the company said.

The dress code prohibits employees from having face tattoos or more than one facial piercing. Tongue piercings and “theatrical makeup” are also prohibited.

Starbucks said in April that the new dress code would make employees’ green aprons stand out and create a sense of familiarity for customers. It comes as the company is trying to reestablish a warmer, more welcoming experience in its stores.

The old dress code was also loosely enforced, according to the Colorado lawsuit. But under the new dress code, employees who don’t comply aren’t allowed to start their shifts.