The convert_color_codes module deals with the conversion of color codes. Conversion from these codes HSV/HSB, RGB, CMYK, HSL from one to another.
You can install convert_color_codes from PyPI:
pip install convert_color_codes
It is supported on Python 2, 3 ...
from convert_color_codes import *