A method of making a contact lens involves depositing on a portion of a molding surface of a contact lens mold a colorant composition comprising a pigment, a copolymer of 2-hydroxyethylmethacrylate and N-vinylpyrrolidinone, and a crosslinking monomer.