"Illicit" means not sanctioned by law or custom, forbidden, unlawful or improper. Its direct opposite is "Legal", meaning sanctioned by or in accordance with the law.
"Outlawed", "Banned" and "Prohibited" are all synonyms of illicit rather than opposites, since they all describe something forbidden too.
So Legal is the correct antonym.