Due to the excellent characteristics of fluorescence-based imaging, such as non-invasive detection of biomarkers in vitro and in vivo with high sensitivity, good spatio-temporal resolution and fast response times, it has shown significant prospects in various applications. Compounds with both biological activities and fluorescent properties have the potential for integrated diagnosis and treatment application. Alectinib and Rilpivirine are two excellent drugs on sale that represent a clinically approved targeted therapy for ALK-rearranged NSCLC and have exhibited more favorable safety and tolerance profiles in Phase III clinical trials, ECHO and THRIVE, respectively. The optical properties of these two drugs, Alectinib and Rilpivirine, were deeply explored, firstly through the simulation of molecular structures, electrostatic potential, OPA/TPA and emission spectral properties and experiments on UV-vis spectra, fluorescence and cell imaging. It was found that Alectinib exhibited 7.8% of fluorescence quantum yield at the 450 nm excited wavelength, due to a larger electronic transition dipole moment (8.41 Debye), bigger charge transition quantity (0.682 e) and smaller reorganization energy (2821.6 cm−1). The stronger UV-vis spectra of Rilpivirine were due to a larger electron–hole overlap index (Sr: 0.733) and were also seen in CDD plots. Furthermore, Alectinib possessed obvious active two-photon absorption properties (δmaxTPA* ϕ = 201.75 GM), which have potential TPA imaging applications in bio-systems. Lastly, Alectinib and Rilpivirine displayed green fluorescence in HeLa cells, suggesting the potential ability for biological imaging. Investigation using theoretical and experimental methods is certainly encouraged, given the particular significance of developing integrated diagnosis and treatment.