The significant associations observed in our study suggest that SNPs of rs1129038 of the HERC2 gene may influence the expression of other pigment-related genes, thereby contributing to the risk of melasma development. This evidence concerns the gene HERC2 and freckles.