It was the seventh consecutive loss for the Pistons, who, like the Lakers, are struggling this season.
Wesley Johnson and Ed Davis each added 13 points for the Lakers (17-46), and seven Lakers overall scored in double digits.
After back-to-back dunk shots by Davis gave the Lakers a 77-69 lead with under eight minutes to play, Detroit cut the Lakers' lead to 85-82 with 1:42 left in the game.
But then Pistons forward Greg Monroe missed two free throws, and Hill sank a jump shot with 49.6 seconds left that helped secure the win.
Lakers rookie guard Jordan Clarkson continued his steady play with a career-high eight assists and 10 points.
Monroe led the Pistons (23-40) in scoring with 24 points. Detroit was without point guard Brandon Jennings, who was lost for the season with a torn Achilles' tendon.
Andre Drummond had 21 rebounds along with 14 points. The Pistons are 4-4 when Drummond gets 20 or more rebounds.
The Lakers shot 42.7% from the floor, while the Pistons shot 38.6%.
The Lakers also outrebounded Detroit, 46 to 41, with Carlos Boozer alone collecting 10 rebounds.
The Lakers beat the Pistons for the 11th time in the last 12 meetings, but were officially eliminated from playoff contention before their game ended when New Orleans beat Brooklyn.
The Lakers signed 6-foot-4 shooting guard Jabari Brown to a 10-day contract.
Brown went through training camp with the Lakers and most recently was a member of its Development League affiliate the D-Fenders.
He led the Development League in scoring with an average 24.4 points per game and was a D-League All-Star this season.
Follow Jim Peltz on Twitter @PeltzLATimes