python-colormath is a Python module which abstracts common color math operations. (For example, converting from CIE L*a*b to XYZ, or from RGB to CMYK.) Other operations, such as calculating ANSI and ISO density from spectral data or taking the delta E of two colors, are also covered.