What kind of "spectrum" do you have? Absorption spectrum? Transmission spectrum? Reflection spectrum?
From the absorption spectrum, you will need to use the Kramers-Kroenig relation. From transmission and reflection you will need to follow standard procedures from ellipsometry.
It is difficult to obtain exact relation between UV-Visible absorption and refractive index of material. In order to find the absorption coefficient Beer-Lambert Law is used.
http://pubs.acs.org/doi/pdf/10.1021/ma00036a008 will help you to connect the refractive index and absorbance of material.
In order to estimate corresponding refractive index with wavelength Cauchy’s equation will be useful. https://www.quora.com/Whats-the-Relation-between-refractive-index-of-the-medium-and-wave-length-of-the-incident-light-ray
Hello,Refractive index of any medium is the calculation of tilting of a any EM waves when it passes from one medium to another.
So formula for RI is n =c/v where c is the speed of light and v is the velocity of EM wave so from the same formula we can calculate the Approximate RI of medium.