Hannah Hirzel, 17, who lives four miles from the epicenter, said: "I was home alone and I ran out of the house ... I was sitting where my bookshelf fell, but I ran too quick."
The quake, which lasted up to half a minute, was preceded and followed by a number of smaller ones.
The LA County Fire Department received reports of gas leaks and scattered damage, said spokesman Ed Pickett, while police in Fullerton, about fives miles from La Habra, reported several water main breaks, spokesman Jeff Stuart told KCAL 9 television.
A rock slide took place in Carbon Canyon, about six miles from La Habra.
Video showed a white car flipped over on its roof, apparently by the rock fall. The driver escaped with no major injuries, according to CBS 2 television.
At Dodger Stadium, the quake briefly interrupted the baseball game between the LA Dodgers and the Angels.
A power outage attributed to the quake cut electricity supplies to nearly 2,000 customers in the La Mirada area, near La Habra, said a spokeswoman for the Southern California Edison utility company.