Skin color is determined by the amount of a pigment called melanin, which is produced by melanocytes, special cells in the skin. Those with very dark skin have the highest levels of melanin, while those with very fair skin have the smallest amount. In rare cases, melanin is completely absent, resulting in a condition known as albinism.