The series of events in which an ultraviolet radiation (UV light) stimulus is received and converted into a molecular signal. Ultraviolet radiation is electromagnetic radiation with a wavelength in the range of 10 to 380 nanometers.