illegitimacy (n.)
1670s; see illegitimate + -acy.