You will need a cvar string for colors in rgb format and after parse them 3 by 3 or split them after some delimitator in a vector or how do you want and then replace the first 3 values with your own in the hud set_hudmessage(val1,val2,val3,rest of code..);