Cutaneous melanoma is the most lethal skin cancer and noninvasively distinguishing it from benign tumor is a major challenge. Raman spectroscopic measurements were conducted on 65 suspected melanocytic lesions and surrounding healthy skin from 47 patients. Compared to the spectra of healthy skin, spectra of melanocytic lesions exhibited lower intensities in carotenoid bands and higher intensities in lipid and melanin bands, suggesting similar variations in the content of these components. Distinct variations were observed among the autofluorescence intensities of healthy skin, benign nevi and malignant melanoma. By incorporating autofluorescence information, the classification accuracy of the support vector machine for spectra of healthy skin, nevi, and melanoma reached 90.2%, surpassing the 87.9% accuracy achieved without autofluorescence, with this difference being statistically significant. These findings indicate the diagnostic value of autofluorescence intensity, which reflect differences in fluorophore content, chemical composition, and structure among healthy skin, nevi, and melanoma.