EDTA (ethylenediaminetetraacetic acid) is used in purple-top tubes as an anticoagulant to prevent blood from clotting during storage and transportation.