But traders remained wary of Hurricane Irma, rated the most powerful Category 5 storm, which was closing in on the Virgin Islands and headed toward Florida at the weekend, raising concerns that it could knock out a major demand center and cause more fuel shortages.
Brent had gained 65 cents to $54.03 a barrel by 11:55 a.m. EDT (1555 GMT). US West Texas Intermediate (WTI) crude futures were up 60 cents at $49.26 a barrel.
"Everyone is just grappling with the spate of storms that are populating the Gulf," said John Kilduff, a partner at Again Capital.
Many refineries, pipelines and ports that were shut due to Harvey 10 days ago are restarting.
On Tuesday, about 3.8 million barrels per day (bpd) of refining capacity, or 20 percent of the US total, was shut. This compares with 4.2 million bpd at the height of the storm.
Phillips 66 began restarting its Sweeny, Texas refinery on Tuesday, and expects the plant to be at full production by mid-September.
"Refineries coming back online is putting a squeeze on supplies in the Gulf," Kilduff said. Crackspreads, a measure of refining profitability, have been constrained as crude prices have risen and gasoline futures have begun to be pared back.
Oil terminals and distributors in Florida are tracking the storm, which could curtail fuel shipments to the state, which is largely dependent upon waterborne deliveries of gasoline and diesel.
Around 250,000 bpd of refining capacity in the Dominican Republic and Cuba lies in the immediate path of Irma, Thomson Reuters Eikon data showed.
Weekly fuel storage data on Wednesday from the American Petroleum Institute and on Thursday from the Energy Information Administration was expected to give a better view of the extent of Harvey's impact on US fuel inventories. But analysts say it will take a few weeks more to get a complete picture.
Seven analysts polled ahead of inventory report forecast that crude stocks last week likely rose 4.7 million barrels after nine straight weeks of drawdowns, while refined product inventories were seen lower.
There is also another tropical storm on Irma's heels in the Atlantic, and another one active in the Gulf of Mexico.
Longer-term, the oil industry outlook is for ample supplies and low prices as crude output remains high in the three biggest producing regions: Russia, the Middle East and North America.
Adding to the longer term bearishness, some Libyan production returned. The 280,000 bpd Sharara oilfield, the country's largest, was gradually restarting on Wednesday after the lifting of a pipeline blockade, Libyan oil sources said.