Answer:
The blood in the pulmonary artery is going to the heart to collect oxygen, and therefore has a low content of oxygen. So, the blood in the pulmonary artery is a violet colour because it has low oxygen. The blood in the pulmonary vein is oxygen rich, and so it gives a scarlet color.