The cocoons, the silkworm itself, and the produced silk become colored when dye is incorporated into the silkworm feed. The concentration of dye in the produced silk changes based on how hydrophobic the dye is (increasing partition coefficient).