The UK has a population of about 63m. 46m of those could vote. 30m of those did vote. 17.5m of those voted to leave.
That's 52% of the turnout; 38% of the electorate; 25% of the population.
They won the ballot, but I wish they'd stop saying "a majority of the country voted for Leave" when only a quarter of the country voted leave.