Garlic can turn purple when it is exposed to direct sunlight for too long. Other factors that may cause the garlic to change color are age and low temperatures.