mask paramter node from material editor to linear color variable in widget ?

hello guys:

i have a BP to change my material color using UI widget and i would like to store the final color to a RGP mask and take the linear structure value from this mask to put it in my widget and i dont know how to do this ?