Hernandez, who is competing for the No. 5 spot in the Rays' rotation, allowed one run on two hits and two walks while striking out one in 2 1/3 innings. The veteran right-hander threw 33 pitches of which 21 were strikes.
"I feel good today," Hernandez said. "I keep the ball down, I throw strikes and my body feels good."
Anibal Sanchez made his second start of the spring for the Tigers and his final start before joining Venezuela for the World Baseball Classic.
The right-hander allowed no runs on four hits and he struck out one. He has not allowed a run this spring.
Matt Moore, who will be the Rays' No. 2 or No. 3 starter, pitched 1 1/3 innings allowing two runs on three hits, including a run-scoring single to Nick Castellanos in the fourth.
Sam Fuld had a two-run triple off Ryan Robowski that tied the score at 2, but Jhonny Peralta grounded out against Kirby Yates in the fifth to drive home a run to put the Tigers up, 3-2.
Austin Jackson hit his first home run of the spring in the sixth when he connected off Jamey Wright with Castellanos aboard.
The Tigers put the game out of reach with a five-run ninth inning. Dixon Machado hit a three-run double to give Detroit the 11-2 lead.
Up next: Jake Odorizzi will make his second appearance of the spring Friday when he starts against the Blue Jays in a 1:05 p.m. ET contest in Dunedin. Also scheduled to pitch are Chris Archer, Alex Colome, and Mike Montgomery. Odorizzi and Archer are both in contention for the Rays' No. 5 starter job. Mark Buehrle is scheduled to start for the Blue Jays.
Bill Chastain is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.