AssertionError: Could not create valid Color object from value Blue in space rgb

I get thie error. If anyone please help give some suggestions?

assert color.valid, f"Could not create valid Color object from value {raw} in space {colorSpace}"
AssertionError: Could not create valid Color object from value Blue in space rgb

Seems like the color you are trying to specify is given as a string, while the object expects a color value formatted as rgb. Could you try setting the color value to (-1, -1, 1)?

Hi, I just met this problem, and I solved it. You need to set the variable name with “$” in text component.

For example, if your set your variable name of the color is ‘msg_color’, you need to set “$msg_color” in text component, and write “msg_color == ‘red’” in your code