An earthquake of magnitude 5.0 on the Richter scale hit Myanmar at 12.54 am (IST) today, said National Center for Seismology (NCS).