Sows are black, and piglets born are white, mainly because piglets are affected by pregnancy hormones in their mothers, which affect the growth of epidermis and the synthesis of melanin, thus appearing white at birth.
The above information is for reference only. For more information, please consult a professional animal and animal behavior expert or related practitioners.