LAS VEGAS (AP) - Nick Johnson scored 18 points and hit a contested shot with 34 seconds left, helping No. 18 Arizona beat Colorado 79-69 in the Pac-12 tournament quarterfinals on Thursday.
Arizona (25-6) led by 14 in the second half, but had trouble shaking the desperate Buffaloes (21-11).
Johnson hit his shot between three defenders to put the Wildcats up four and followed teammate Mark Lyons' two free throws by swatting Askia Booker's 3-point attempt into Colorado's bench.
Lyons had 14 points and Solomon Hill 13 for Arizona, which moves on to face No. 21 UCLA in Friday's semifinals.
Colorado won last year's conference tournament with four wins in four days and opened this year's tournament with a six-point victory over Oregon State.
Now the Buffaloes will have to wait for the selection committee to make its decision to see if they'll get into the NCAA tournament after the close loss to Arizona.
Spencer Dinwiddie led fifth-seeded Colorado with 18 points and Andre Roberson added 15 points and 11 rebounds.
The Wildcats and Buffaloes played a couple of memorable games during the regular season.
Arizona won in overtime in Tucson on Jan. 3, when a disputed 3-point shot by Sabatino Chen was waved off after a video review. Colorado got payback in a big way in Boulder with a 71-58 win, Arizona's worst loss in two years.
Heading into the rubber match, Arizona was pretty much a lock for an NCAA tournament berth, while Colorado was trying to win the tournament for the second straight year or at least boost its resume to get an at-large bid.
The Wildcats also were trying to get their defensive groove back.
A top-5 team after opening the season with 14 straight wins, Arizona faltered late in the Pac-12 season, mostly because of a defense that had taken a step back instead of getting better. The Wildcats got some of their swagger back in a lopsided win over rival Arizona State to close the season and hoped they would keep up in the conference tournament.
Arizona, the tournament's fourth seed, got off to a good defensive start against Colorado, forcing 10 first-half turnovers that led to 15 points while limiting Colorado to two 3-point attempts.
Johnson provided the spark.
He broke out of a mini funk against Arizona State and was active against Colorado, hounding whoever he was guarding while scoring at the rim and from the arc at the other end.
Johnson had eight points in the first half and charged up the crowd early in the second, hitting a 3-pointer, scoring on an underhanded shot for a three-point play and feeding Lyons for a layup that put the Wildcats up 49-36.
Colorado whittled the lead down to seven on a 3-pointer by Dinwiddie, but Kaleb Tarczewski hit a jump hook and Kevin Parrom dropped in a 3-pointer as Johnson waved his arms at the crowd - he knew it was going in - that made it 59-47 and started a chant of U-of-A! from Wildcats fans.
The Buffaloes made another run after that, cutting the lead to 3 when Dinwiddie scored on an acrobatic scoop shot and kept Colorado in reach with some big shots.
Lyons hit a turnaround 3-pointer from the corner as the clock expired with about 2 minutes left, but Booker answered quickly with a 3 in transition to pull the Buffaloes within 71-67.
Lyons lost his dribble for a turnover on Arizona's next possession and Roberson hit two free throws at the other end to make it a 2-point game, but the Buffaloes didn't score again.