A method for reducing drug administration errors is provided. The method may include manufacturing a drug with a specified color indicator. The method may include receiving an instruction to dispense a desired medication and dosage. The method may include loading a drug into a dispensing device. The method may include initiating a color spectroscopy sequence. The method may include determining, using color spectroscopy, the class of the loaded drug. The method may include determining whether the class of the loaded drug matches the class of the desired medication and dosage.