Connected with perna (“ham, haunch”), though the expected form would be *pernāx.
Practice speaking and memorizing "pernix" and many other words and sentences in Latin.