This is an REST API to get a requested color, its complementary and its grayscale in different formats and the black or white text corresponding to each color according to their brightness.
You can see the result here
note: the project architecture corresponds to a subdomain