The age of consent in California is 18. However, if the difference in age between the minor and the adult is three years or less, the charge is a misdemeanor instead of a felony. That being said, the law is unforgiving and makes no exceptions for any underage relations. In fact, theoretically, if two 17 year olds had sex with each other, they could both be prosecuted under California law.