Washington (CNN) A Quinnipiac University poll released Wednesday shows a tight race in Texas between Sen. Ted Cruz and Rep. Beto O'Rourke for Cruz's Senate seat.

The poll found wide gaps by registered voters' gender, age and race. Cruz led among voters who are white, male and older than 65. O'Rourke had the edge in the black, Hispanic, female and 18 to 34 years old demographics.

Fifty-nine percent of white voters selected Cruz, while 34% chose O'Rourke. Among black and Hispanic voters, O'Rouke led Cruz by 78%-18% and 51%-33%, respectively.

Men backed Cruz by an 11-point margin (51%-40%), and women favored O'Rourke by a 4-point edge (47%-43%).

Read More