Attorney General Kamala Harris' office filed the lawsuit on Tuesday in San Francisco Superior Court.
The suit claims the retailers and candy makers "knowingly and intentionally" exposed consumers to lead in violation of Proposition 65, which requires businesses to issue warnings about even minute amounts of chemicals deemed harmful by the state. The suit says laboratory tests verified lead in the products.
If found true, the candy makers and retailers could be fined up to $2,500 per day for each violation.
Whole Foods Market California Inc. and Trader Joe's Co. did not immediately return calls for comment.
MORE HBJ HEADLINES
There’s rare good news on the retirement front 3:36 p.m. Canadian dollar rises above 80 cents U.S. mark 2:50 p.m. OPEC oil output surges as Iran looks to regain market share 2:53 p.m. U.S. wage increases subdued in first quarter 2:46 p.m. Briefs: National Guard honors Meadowdale High School principal Dunkin’ targets Starbucks by highlighting espresso drinks