In contrast vs On the contrary

Could you please explain the difference between “In contrast” and “On the contrary”? Thank you very much

is used when you want to express a different point of view/opinion.

when you want to make a comparison between two things/opinions and where the difference is quite strong.

Could you give me some examples Alan?

What I suggest is that you look in the British National Corpus and put in both expressions in the space that says: Enter text. You will then see many examples.

This is the site:

Thank you very much Alan. The site is so useful.