The nitrate turns to nitrite, which reacts with a protein in the meat called myoglobin, producing a pinkish color. The reaction also produces minuscule amounts of something called nitrosamines, which may be cancer-causing. Today, the amount of nitrates is limited by law to what seems to have been deemed an acceptable risk for the oddly unquestioned goal of making ham reddish.