How does [set unit name label color] work

im using 2.3.0 andwhen i try to set color to red it dont work
do i have to put in color code? if so then which, rgb, or what

Are you using the old “set unit name label color” action? Or you are using the new “set unit name label color for player”?

that one is deprecated use the player one

If you didn’t notice the “(obsolete)” thing, it means it is deprecated. So it’s best to use the newer version
Obsolete