Data Binding Color Instance with Number Property

I’m explaining, I’ve multiple Instance of a color palette (Palette1, Palette2 etc.), I’ve created a Viewmodel in which I have 1 Model attach to each palette instance. I would like to be able to dynamically change the model/instance by changing a Number property.

Is it achievable like that or is there any other way to achieve it ?