The quake was centered about 18.5 miles southwest ofBakersfield, about 89 miles north of downtown L.A.
It struck at 9:09 p.m., according to the U.S. Geological Survey.
There were no immediate reports of damage in Southern California.
Downtown Los AngelesMega Agency
City News Service contributed to this report.