Tremors from a 6.2 magnitude earthquake in Sumatera were felt across several states in Peninsular Malaysia today.

"There is no tsunami threat," the Meteorological Department said on Twitter, shortly after the 10km depth quake struck 76km northwest of Payakumbuh, Indonesia, about 9.30am Malaysian time today.

Tremors were felt in Selangor, Kuala Lumpur, Perak, Negeri Sembilan, Melaka, and Johor.

This caused several buildings in the locations to be evacuated for safety.

Netizens also took to social media to relate witnessing and feeling their building and belongings swaying during the tremors.

Photos being shared online also show staff members of various buildings, including that of government offices in Putrajaya, standing outside as a safety precaution.

There were no immediate reports of casualties or structural damage from the quake.

Photo source: Facebook