Using predefined colors vs defining new colors

I have a script that recolors a number of objects at runtime, using someObject.renderer.material.color = color. I’m pulling these colors from a predefined list. For some reason, if I fill that list with the predefined colors in unity, everything works fine. If I try to define my own colors, they show up as unlit colors.

Here’s my code, and an example of the difference between the two:

		List<Color> colorList = new List<Color>(){
			Color.red,
			Color.green,
			Color.yellow,
			Color.magenta,
			new Color(255F, 0F, 255F),	
			new Color(0F, 255F, 255F),	
			new Color(255F, 255F, 0F),
			new Color(128F, 0F, 128F),	
			new Color(128F, 0F, 0F)
			};

someModel.renderer.material.color = colorList*;*

[16885-colors.jpg|16885]*
*

Unity’s (Unity - Scripting API: Color) expects values between 0 and 1. You can swap 255 for 1.0, 128 for 0.5.