BOULDER, Colo. — The pregame screening was motivation for the Colorado Buffaloes — a clip of all the wins the program has posted over ranked teams through the years.

Time for a rewrite. Need to add another segment.

Namon Wright scored five of his 19 points in overtime, including a pair of game-sealing free throws at the end, and Colorado beat No. 4 Arizona State 90-81 on Thursday night.

"We showed them (a clip) and said, 'Now, it's time for you guys to write your next chapter,'" coach Tad Boyle said.

They did that. Just took a little bit to warm up.

Down 11-0 to start the game, the Buffaloes (9-6, 1-2 Pac-12) steadily whittled away and opened up a six-point lead with 1:17 remaining in regulation. But the Sun Devils (12-2, 0-2) stormed back, with Mickey Mitchell tying the game at 74 with 5 seconds left on an emphatic dunk.

In overtime, the Buffaloes hit six straight free throws down the stretch to secure the victory. It was the highest-ranked team Colorado has beaten since knocking off No. 3 Texas on Feb. 4, 2003. The Colorado fans stormed the court to celebrate.

"That's crazy," said freshman McKinley Wright IV, who scored 19 points. "It's a confidence builder. This is what we needed. When we're playing like this, having fun, we can beat anyone in our league."

George King chipped in 18 as Colorado snapped a three-game skid.