The hub genes obtained in this study may be a biomarker related to the development of vitiligo pigmentation. Our research not only contributes to a better understanding of the treatment mechanisms of vitiligo but also provides valuable insights for future personalized medical approaches and targeted therapies for vitiligo.