Picking from where I left in part 2, I decided not to implement the color name logic any further but use a third party API to get color names. Implementing the algorithm was quite involving and I was not pleased with the results I was getting.
After googling for a while I came across a very nice API called color-names. The API has large database of color names 18000+ which can be accessed via a rest endpoint.–
Below is the color screen with names added.
Source code can be found in GitHub.