A violation expressly declared to be a felony, or a public offense which is punishable, in the discretion of the court, either as a felony or misdemeanor, or a willful violation of a court order which is punishable as contempt pursuant to subdivision (a) of Section 42003, is not an infraction.
Ca. Veh. Code § 40000.3