Invalid normalized color error in unity

For example,
Color C = new color (0xf2, 0xff, 0xff);
is used label.color = c;

Compile without error, open the interface will report the above error. This is because the values of R, G, B and a in the color construction method range from 0 to 1. The value range of color32 construction method is 0 to 255, so it needs to be changed to

Color c = new Color32(0xF2,0xFF,0xFF);

Read More: