A magnitude 6 earthquake hit southwestern Mexico on Thursday, 173 km southwest of the capital Mexico City, the US Geological Survey said, but there were no immediate reports of damage.