Penal Code 166 PC is the California statute that defines the offense of contempt of court. A person commits this crime if he or she engages in any behavior that is disrespectful to the court process. This is a misdemeanor that carries a penalty of up to 6 months in jail.