女犯 is a formal/legal term (parallel to
男犯, male convict) used in courts, prison records, and news reports. In casual speech you'd say
女囚犯 or
女罪犯. CC-CEDICT marks it specifically as the historical imperial-era term, but it remains in modern legal usage.