Employee-rights lawyers are pressing a lawsuit against Facebook Inc. that alleges the social media company’s advertising platform unlawfully permits businesses to promote job, credit and housing opportunities to white, wealthy users and exclude people of color or those in less affluent zip codes.

The class action in San Jose, California, federal district court claims Facebook’s advertising tool that allows businesses to exclude groups, such as African-Americans, Latinos and Asian-Americans, from advertising opportunities violates federal housing and civil rights laws.