Pigmentation refers to the coloring of the skin caused by the presence of melanin, a natural pigment produced by melanocytes. Variations in pigmentation can lead to conditions such as hyperpigmentation (dark spots), hypopigmentation (light spots), and melasma (brown or gray-brown patches). These conditions can be influenced by various factors, including genetics, sun exposure, hormonal changes, and skin injuries.