LOS ANGELES (AP) -- Five stars of "Modern Family" have banded together and are suing to void their contracts to work on the hit comedy, arguing that the contracts are illegal under California law.

The suit filed Tuesday by series stars Sofia Vergara, Jesse Tyler Ferguson, Eric Stonestreet, Julie Bowen and Ty Burrell and argues that their contracts with 20th Century Fox Television violate a California law prohibiting personal service contracts from extending for more than seven years.

The lawsuit asks a judge to rule the contracts are illegal and should be voided because they prohibit the actors from other work. The lawsuit states the contracts bind the actors to work on the series between February 2009 and June 30, 2016.

A spokeswoman for 20th Century Fox said the studio had no immediate comment on the case.

"Modern Family" is a popular comedy that airs on ABC and won Emmy Awards for outstanding Comedy Series the past two years. Several of the stars, including Burrell, Bowen and Stonestreet have won individual Emmys for their work on the show.