Pedro Delgado of Spain won the 17th leg of the 72d Tour de France bicycling race yesterday in the time of 6 hours 57 minutes 21 seconds. Frenchman Bernard Hinault, showing strain during two climbs, finished 18th but remained the overall leader.

Colombians Luis Herrera and Fabio Parra were second and third, respectively, in the day's leg, a 130-mile race from Toulouse to the ski resort of Luz-Ardiden. Herrera was 25 seconds behind and Parra trailed by 1:29. Greg Lemond of the United States was fifth, 2:52 off the pace.

Delgado fought off Herrera on the final climb and crossed the finish line alone.

During the climb at Tourmalet, in the 108th mile, Delgado, Ireland's Stephen Roche and Lemond took turns in the lead.

In the final climb, Hinault was suffering visibly from respiratory difficulties, which were said to indicate the onset of bronchitis. His lead over Lemond in the overall standings diminished to 2 minutes 25 seconds. Hinault's total time is 91:26:28.

In the women's division of the race, Italy's Maria Canins won the second leg of the second stage and maintained her overall lead. Canins finished nine minutes ahead of Jeannie Longo of France in the 32-mile run from Sainte-Marie-de- Campan to Luz Ardiden. The winning time was 2 hours 13 minutes 30 seconds. U.S. rider Janelle Parks was 10th, 15:02 behind the winner.

In the overall standings, Canins has a total time of 4:55:22. Longo is 9:18 behind.