Former employees of Momentum Solar on Monday accused the New Jersey-based energy company in a federal lawsuit of racial discrimination and retaliation, saying they had been fired after complaining about racism at the firm’s New York warehouse.

In a complaint filed Monday in the U.S. District Court for the Eastern District of New York, six black workers alleged that white supervisors at the warehouse regularly used racial slurs and directed other insults at minorities who worked there. When the plaintiffs complained about their treatment, they were soon fired, leaving just two black workers employed at the New York office, the filing said.