Melanocyte-stimulating hormone (MSH) is a peptide hormone produced by the pituitary gland that plays a crucial role in regulating the production and distribution of melanin, the pigment responsible for skin and hair color. MSH acts on melanocytes, the specialized cells found in the basal layer of the epidermis, to stimulate the synthesis and release of melanin.