Ultraviolet (UV) irradiation offers an effective and convenient method for the disinfection of pathogenic microorganisms. However, UV irradiation causes protein and/or DNA damage; therefore, further insight into the performance of different UV wavelengths and their applications is needed to reduce risks to the human body. In this paper, we determined the efficacy of UV inactivation of the SARS-CoV-2 omicron BA.2 and BA.5 variants in a liquid suspension at various UV wavelengths by the 50% tissue culture infection dose (TCID50) method and quantitative polymerase chain reaction (qPCR) assay. The inactivation efficacy of 220 nm light, which is considered safe for the human body, was approximately the same as that of health hazardous 260 nm light for both BA.2 and BA.5. Based on the inactivation rate constants determined by the TCID50and qPCR methods versus the UV wavelength, the action spectra were determined, and BA.2 and BA.5 showed almost the same spectra. This result suggests that both variants have the same UV inactivation characteristics.