Gold reversed course and turned positive on Friday, popping above the key $1,900 level, after data showed U.S. consumer prices surged in April and boosted bullion's appeal as an inflation hedge.

Spot gold had risen 0.3% to $1,902.27 per ounce by 1:51 p.m. EDT (1751 GMT), having earlier dipped as much as 0.8%. It is on course for its fourth straight weekly gain, up 1.1%.

U.S. gold futures settled up 0.4% at $1,905.3.

U.S. consumer prices accelerated in the year to April, with a measure of underlying inflation blowing past the Federal Reserve's 2% target.

"We saw a slight uptick in the personal consumption data... All these things continue to support an underlying inflationary environment that is very favourable towards gold," said David Meger, director of metals trading at High Ridge Futures.

The refusal of the Federal Reserve to reduce the pace of their bond buying program or move higher on rates is also supportive for gold, although some psychological resistance at the $1,900 level and a stronger dollar is acting as a headwind, he added.

The dollar index pared gains, making gold less expensive for other currency holders, while U.S. yields edged lower, translating into reduced opportunity cost of holding bullion.

The White House unveiled a $6 trillion budget proposal that would ramp up spending on infrastructure, education and combating climate change.

The technicals are supportive, so any weakness in the prices will be looked at as a buying opportunity, Eli Tesfaye, senior market strategist at RJO Futures said.

If the U.S. economy recovers quickly and inflation continues to heat up, gold will be in ample demand, he added.

Elsewhere, silver was steady at $27.86 per ounce, platinum slipped 0.2%, to $1,176.99, while palladium rose 0.8% to $2,827.04. (Reporting by Sumita Layek in Bengaluru Editing by Mark Heinrich, Chris Reese and Nick Macfie)

© Reuters News 2021