how to get a stable 5v reference

Standard approach to this is take a sufficiently accurate voltage reference chip (and maybe a precision op-amp to scale/buffer the output). Won't give a power supply but will be a voltage reference for an ADC for example.

If the application is analog->digital conversion there are many ADCs with built in references.

But without knowing the specification can't really suggest any concrete examples.