BOULDER, Colo., Aug. 24— Bernard Hinault ended his illustrious career as a bicycle stage racer here today by winning the 16-day Coors Classic.