dynamic object color

I’m new to blender and I want to create a 3d object in which the user can drag specific color from the color table that I will create. My main objective is when the user selects a color and drags it to a part of the object, the color shoud change. I don’t know if this is possible through blender. Comments or suggestion will be highly appreciated. Thank you!