The quake struck near Pearblossom in northern Los Angeles County around 10:49 p.m., USGS said.
The earthquake's epicenter was located a little more than three miles south of Pearblossom. The quake had a depth of 5.59 miles, according to the USGS.
There were no immediate reports of injuries or significant damage.