The power was out in Napa, about six miles from the earthquake's epicenter, as well as in other towns and cities nearby, affecting more than 10,000 households, according to the Pacific Gas and Electric Company.
The California Highway Patrol in the San Francisco Bay Area tweeted that it was "checking over crossings and bridges for obvious signs of structural integrity," and asked residents to report any signs of problems.
Residents of the cities of San Francisco, some 40 miles southwest, and Davis, just over 40 miles northeast, quickly took to Twitter reporting also feeling the quake.
Twitter user Tyson Winter wrote: "Shook violently here in Napa. Power's out." Ann Marie Christy,wrote that her mother, also in Napa, said the shaking "was very violent with a lot of broken glass." And in San Francisco, Om Malik posted "Damn, woke me up. Was super long. #quake #sf."
Further north, Tim Kerbavaz tweeted: "Felt it in Davis too. Quite long."