# colorsys Published: 04 August 2020, 18:00 The [colorsys](https://docs.python.org/3/library/colorsys.html) module converts colors between different [representations](https://en.wikipedia.org/wiki/Color_model): RGB, YIQ, HLS, and HSV. Yes, it is in the stdlib! ```python import colorsys colorsys.rgb_to_hsv(0.2, 0.4, 0.4) # (0.5, 0.5, 0.4) ```