Increased production of melanin results in formation of clusters of melanin in some parts of the body, such as legs, ankles, arms, etc. They occur as flat brown patches on the skin. Sun spots can also occur as white spots on the skin in some cases. Although they are painless, they may or may not be a sign of skin cancer.