KANSAS CITY, Kan. — The sun shined brightly on Denny Hamlin at Kansas Speedway.
At the most opportune of times, too.
Hamlin's car hooked up after the final pit stop Sunday, just as the sun broke through on an overcast afternoon, and he powered by Martin Truex for the lead in the STP 400. Hamlin then held off a late charge by Truex for his second win this season.
"Whether it was coincidence or not," Hamlin said, "our car definitely felt better when the sun came out. I felt the car lost a lot of grip, but I guess a lot of guys did."
It was Hamlin's first win at Kansas and gave his Joe Gibbs Racing team momentum heading to Richmond, where the Virginia driver has won twice in 12 starts.
"I felt all day I was behind the 56 and his car looked so superior to the whole field, and we just needed some kind of change — the weather, an adjustment — to make something happen," Hamlin said, smiling. "And we got both of them."
Jimmie Johnson was third for Hendrick Motorsports, which has failed in 14 tries to win the team's milestone 200th race. Dale Earnhardt Jr. and Kasey Kahne also finished in the top 10.
"I was just watching from the third spot, hoping those guys would give me an opportunity," Johnson said. "I just wish I was closer to those guys to race for it."
Hamlin's best finish at Kansas had been third last year, and for most of Sunday's he was content to ride around during long green-flag runs out of the spotlight. His car kept getting better with each stop, and his Toyota finally took off at the end.
"They didn't panic," team owner J.D. Gibbs said. "They paced themselves, and I'm glad the sun stayed out a little at the end."
Truex dominated most of the afternoon, leading a race-high 173 laps, but he had to settle for second. It was his third top-five finish of the season, but he has yet to win in 175 races.
Truex said his final set of tires cost him. He was the loosest he'd been all race, and that allowed Hamlin to charge into the lead. Truex rallied within a car length with two laps to go, but he couldn't make a move on the bottom side stick.
Hamlin won this year at Phoenix, started on the pole at California, and led 31 laps at Martinsville before finishing sixth. He was 12th last week at Texas.
"We felt a lot like Phoenix in the sense we just hung around the top five all day, and at the end we just kind of make our charge, make our run," Hamlin said. "There were a couple things that had to happen the last run for us to work out, and those things happened."
Matt Kenseth finished fourth despite having a wild afternoon trying to get into the pits, often sliding across the commitment line. Greg Biffle was fifth.
"It was a tough day," Biffle said. "We were back and forth all day, and we were off just a bit."
Kevin Harvick was sixth, followed by Earnhardt and Kahne, giving Hendrick Motorsports at least three cars in the top 10 for the second straight week.
The 14-race drought for Hendrick is its longest since going 15 races without a win during the 2002 and '03 seasons.
"Everybody here needs a win for one reason or another," Earnhardt said. "Make your car faster, then the wins eventually take care of themselves."