The opposite of misdemeanor is "obedience".
Misdemeanor is define as:
A crime less serious than a felony
Misdeed
Legal Definition of misdemeanor:
A crime that carries a less severe punishment than a felony; specifically : a crime punishable by a fine and by a term of imprisonment not to be served in a penitentiary and not to exceed one year.
Synonyms for misdemeanor:
offense
transgression
violation
criminality
Check out 7 Tips for Learning English Vocabulary shared by English Club.