How can I calm my OCD anxiety and stress?

I continuously feel the need to wash my hands because if my routine doesn’t go perfect I have to do it over and over until I get it perfectly right but I don’t want to keep doing it over and over. How can I stop this anxiety and calm down?