how can i make the users add color to shapes if i have in my scene a image of a color palet

Im working on a 3D game in unity for teaching colors and shapes and in my scene i added a picture of a color palet but i have no idea on how to make the changes with the game is in play.

Get the color from picture:

Set the color to material (use shader that has color property):