An experimental arrangement is described for determining refractive indices of absorbing liquids and solids over a wide spectral range. Reflection and transmission measurements are carried out. Refractive indices of rhodamine 6G–methanol solutions around the S1 absorption band are presented.