changing label text tu custom color

Hi,

I’ve got a question related to setting label color to custom value. That doesn’t work.

What works:

GUIStyle TextStyle = new GUIStyle();
TextStyle.normal.textColor = Color.red;

but

TextStyle.normal.textColor = new Color(10,20,30);

doesn’t (dusplays always text as white)

Why it’s so ?

Thank you

The parameters to Color are floating points in the range 0 to 1.