Melanin gives the skin its color. In certain conditions melanocytes can become abnormal and cause an excessive amount of darkening in the color of the skin.