Based on the work of Siné MacPherson and looking at LEXICAL SPECTRUMS DEFRAGMENTED, this looks to take up the heavy lifting of analysing text for colours.
Open the demo here
Have a look at http://www.sinemacpherson.com to see some of the amazing work this is inpired by.