
Here is a color wheel, typically from the web. I would like to create something like the user input the Yellow color code, and I am able to find the complementary color of Yellow is purple. Also, I would like to find the nearby color, light green, and the light orange. How can I implement it in a computer science way? or any existing algorithm to do so? Thanks.