Under the Penal Code, as linked above, "'Crime' means a misdemeanor or a felony". A violation is not a misdemeanor or felony, and is thus not a crime.