STANFORD, Calif. (AP) — Derrick White scored 19 points with eight assists and eight rebounds, Bryce Peters made two 3-pointers as part of a big run in the second half and Colorado held on to beat Stanford 81-74 on Thursday.

Xavier Johnson had 19 points and six rebounds, Peters scored 13 points and Tory Miller added 10 and seven rebounds to help the Buffaloes (13-10, 3-7 Pac-12) to their third consecutive win following a seven-game losing streak.

The win also the 199th of Colorado coach Tad Boyle's career, 143 coming with the Buffaloes.

It wasn't easy or pretty as the two teams combined for 48 fouls and 35 turnovers, including a season-high 23 by Colorado.

The Buffaloes were also held to one basket over the final six minutes but made 9 of 12 free throws down the stretch to seal their seventh consecutive win over the Cardinal.

Marcus Sheffield scored 19 points and Michael Humphrey added 13 points and eight rebounds for Stanford (11-11, 3-7).

Colorado led 53-49 with 11½ minutes remaining before going on a 17-6 run. Peters made two of his three 3-pointers, including one from 27 feet out, and had two free throws during the run.

Stanford closed within 72-63 on Humphrey's jumper with 2:28 left.

Colorado shot nearly 58 percent in the first half but it was misleading. The Buffaloes committed 12 turnovers and managed only three buckets over the final 4 ½ minutes.

Sheffield, who had 15 points before the break, kept Stanford close with three 3-pointers and Josh Sharma added a 19-foot jumper to pull the Cardinal within 41-31 at halftime.

BIG PICTURE

Colorado: The Buffaloes rode the momentum from their stunning win over then-No. 10 Oregon last week to a sometimes sloppy win over the Cardinal. Boyle's team still has a long way to go to get out of the bottom half of the conference but the view looks a lot better than they did a short time ago. . Colorado leads the all-time series 10-9.

Stanford: The Cardinal appeared to have things turned around with three straight wins in mid-January but that's a distant memory now. Stanford didn't play poorly but was inconsistent on the defensive end and were outmuscled inside most of the night.

UP NEXT

Colorado: The Buffaloes stay in the Bay Area and play at California on Sunday seeking their first-ever win in Berkeley.

Stanford: Hosts Utah on Saturday. The Utes have won three of the four against the Cardinal, the lone loss coming last season at Maples Pavilion.