Hey. I m not laywer. But read 261.5 of the penal code. That's probably what you wanted to know. To quote it:
" 261.5 (b) Any person who engages in an act of unlawful sexual
intercourse with a minor who is not more than three years older or
three years younger than the perpetrator, is guilty of a misdemeanor."