It worked.
This is the expression for “Color control”
txt = thisComp.layer("TEXTCONTROL").text.sourceText
if (txt == "violet") ([.75,0,1,1])
if (txt == "blue") ([0,0,1,1])
Now (sorry if this is a stupid question) how can i find the color codes [like this (0,0,0,0)] for my palette?
In color picker there is the RGB format.