Because the blackhead is in an open pore, it’s been exposed to the air. The chemical inside, melanin, has been oxidized by the air and turned the dead skin and natural oil inside black. The whitehead contains the same dead skin and natural oil, but because it’s been inside the closed pore and hasn’t been exposed to air, it stays a white color.