There was no risk of a tsunami or immediate reports of major damage, the country's geophysics agency BMKG said.
The quake, which was on land at a depth of 10km, was felt as far away as Singapore and Malaysia and strongly in the nearby cities of Padang in West Sumatra province and in Pekanbaru in Riau Province, witnesses said.
"We continue to monitor and advise people to remain on alert," Dwikorita Karnawati, the head of BMKG, told MetroTV.
"Because this is on land, and the scale is above six, we are concerned that it could cause some damage."
In Pasaman Barat, about 17km from the epicentre, a witness told MetroTV patients in a hospital were evacuated from the building.
Indonesia's disaster mitigation agency could not immediately be reached for comment about damage.
Indonesia suffers frequent earthquakes, straddling the so-called 'Pacific Ring of Fire', a highly seismically active zone, where different plates on the earth's crust meet.
Last month, a 6.6-magnitude earthquake struck off Java island, prompting some residents in the capital Jakarta to flee from buildings in panic.
A more powerful 7.4 magnitude tremor in the Flores Sea triggered a tsunami warning in December, though caused only minor damage.