In contrast to challenger, Elizabeth Warren, Senator Scott Brown is collecting most of his high-dollar donations in Massachusetts, according to a Globe analysis of his fund-raising figures.

While 40 percent of Warren’s ­donations of more than $200 came from in state between April and June, Brown raised about 60 percent of his large donations in state.

Brown, a Republican, has been pointing to his homegrown fund-

raising to draw a contrast with ­Warren, a Democrat and a Harvard Law School professor who he says is the favorite of the liberal elite in Washington and Hollywood.

Donors from Boston accounted for the most money given to Brown, with $244,775 in itemized contributions. Washington, D.C., was his second-­biggest fund-raising city, with $176,141, followed by New York City, with $145,488, and Wellesley, with $124,520.

Between January and April, New York was Brown’s most ­lucrative source of donations.

The senator raised $4.97 million in the second quarter, compared with $8.67 million for Warren, who has built one of the nation’s most formidable fund-raising operations. Brown has $15.5 million cash on hand, compared with Warren’s $13.5 million.

The race is already among the most expensive in the country, in part because activists and donors in both parties believe it could tip the balance of power in the Senate. Underscoring how the contest has become a national battle, Brown and Warren collected donations from each of the 50 states.

Brown has been trying to ener­gize potential donors by warning that Democrats will have a better chance of retaining control of the Senate if he loses in November.

“Majority control of the ­Senate hinges on the outcome, which is why so many national liberals are pouring so much money into our rival’s race, and it’s why I am the No. 1 target of the national Democrats,” Brown wrote in a recent fund-raising appeal. He predicted that he would be outspent and asked for “every dollar I can get to fend off out-of-state liberals.”

While Brown raised money from a variety of political action committees, some are bound to draw criticism from Warren. After voting March 29 against a bill that would have repealed $24 billion in tax breaks for the five largest oil companies operating in the United States, Brown raised thousands of dollars from political action committees connected to the oil ­industry, including $2,500 from Chevron, $2,000 from the American Petroleum Institute, and $1,000 each from ConocoPhillips and Halliburton.

Brown, who has been ­accused by Warren of protecting Wall Street interests, also raised some large donations from the financial sector, includ­ing $2,500 from Kelly Coffey, a managing director at JPMorgan Chase, and $2,500 from Stephen Berenson, vice chairman of investment banking at JPMorgan’.