There are three different types of melasma: epidermal melasma, dermal melasma, and mixed melasma. Epidermal melasma occurs in the top layer of the skin, dermal melasma occurs in the deeper layers of the skin, and mixed melasma is a combination of both types