STANFORD, Calif. (AP) -- Bryce Wills scored 19 points, including 17 second-half points and a key layup in the final minute, and Stanford beat No. 21 Colorado 72-64 on Sunday.
Oscar da Silva added 16 points, and Daejon Davis and Tyrell Terry each had 12 for the Cardinal (20-9, 10-7 Pac-12), who won their fourth straight.
With the win, Stanford secured its first 20-win season since the 2014-15 campaign.
Tyler Bey scored 17 points to lead the Buffaloes (21-9, 10-7), who lost a third consecutive game for the first time this season. McKinley Wright had 13 points and 11 rebounds, and D'Shawn Schwartz had 14 points.
Wills gave Stanford a 65-52 edge with 8:13 remaining to play and that's when the Buffaloes made their move, scoring 10 straight on three baskets by Wright and two more by Bey.
Wills ended a nearly four-minute drought with a short jumper and Colorado missed its next seven shots.
Except for a two-point deficit early, the Cardinal led the entirety of the contest.
Stanford led by as many as 15 at 35-20 with 2:27 remaining to play. The Buffaloes scored the final eight points to pull within seven at 35-28 at the intermission.
The Cardinal closes out the regular season slate next week in Oregon, taking on Oregon State Thursday in Corvallis and Oregon Saturday in Eugene.