From the description from datasheet, it is OK as below
AVdd = +5V, AVss=0, DGND =0V, Vrefp = +2.5V, Vrefn=0V
But Vrefp input range given from datasheet is:
The Vrefp input range: min = Vrefn +2.5V , max = AVdd -2.5V

Then min = 0V + 2.5V = max = 5V - 2.5V, there is no margin.
Any more explanation about it?