Hospital employees evacuated some patients at clinics in Chiriquí province after the quake, but no injuries were reported.
The U.S. Geological Survey said the quake hit 23 minutes after midnight local time (0523 GMT) and was centered on the nation's western coast just north of La Esperanza at a depth of 10 kilometers (6.2 miles).
President Juan Carlos Varela wrote in a tweet that no significant damages have been reported, and the national civil defense agency confirmed that.
Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.