The quake struck 16 miles from the Coso Junction in Inyo County at approximately 5:42 p.m.
According to the USGS, the quake struck at a depth of just over one mile.
It was the strongest in a swarm of aftershocks to strike the area, all within about 15 minutes. The other quakes registered at magnitudes of 3.4 and 3.1.
There were no immediate reports of injuries or damage.
VIDEO: Man records terrifying moment 7.1 magnitude earthquake hits Ridgecrest
Aftershocks continue hitting the area after two powerful temblors hit near Ridgecrest on July 4 and July 5.
See more stories and videos related to the Ridgecrest quake.