Definition of ANSI, RGB and HSL color types and all the conversions between them.
There are many other color conversion crates. This one may be useful when you're interested into
Be warned that the ANSI range is limited and that not all intuitive operations will give good results.
Luminosity and saturation variations of all 240 ANSI colors, with all variants still ANSI colors.
Several ways to mix colors