The average colours are generated by splitting each colour into Red, Green And Blue values, averaging those and then converting back into a single hex code.
Colour Names
ANSI Color - Use ANSI colors in the terminal.
“Speed kills colour... the gyroscope, when turning at full speed, shows up gray” ~ Paul Morand