The quake happened at about 21:10 local time on Friday and its epicentre was 1 mile east of the town of La Habra.
There were no immediate reports of significant damage or injuries.
A 4.4-magnitude quake was felt near Los Angeles earlier this month, rattling nerves but causing no major damage.
The latest earthquake was shallow at only 1.2 miles deep, according to the USGS.
It was felt across four counties, from Palm Springs in the east and Ventura County to the north, Reuters news agency reported.
The Los Angeles Fire Department said it was checking buildings and transport infrastructure for damage.
It said the quake was a reminder for people to be prepared.
The San Andreas fault, on the edge of the Pacific tectonic plate, runs directly through California, and the western US state has long braced for a devastating quake.
S2B2R5kY8KMAt least five people, including a four-month-old baby, have been killed after dozens of tornadoes…
Harvey Weinstein has been hospitalized just days after his 2020 rape conviction in New York…
Hamas has published a video showing the first proof of life of US and Israeli…
Prosecutors and Donald Trump’s attorneys delivered opening statements and the first witness was called on…
The House of Representatives has finally approved $61 billion in new US military aid for…
The real estate market in the United States has always been a gauge for economic…