Problem with Sprite Renderer changes during runtime

I’m having trouble trying to change my sprite color in Start function.

public var colorArray : Color32[]; //Store all the colors 

if(itemTag == "ReverseItem"){		//Item setup
	var spriteRenderer : SpriteRenderer = this.gameObject.GetComponent(SpriteRenderer);
	var randomColor = Random.Range(0,4);
	spriteRenderer.color = colorArray[randomColor];
	gameObject.tag = tagArray[randomColor];
	
}

}
**If I Debug it, it shows the correct sprite renderer. I’ve tried to change the color and the sprite variables, but none worked on this situation. Any help is appreciated! Thanks. **

Have you put colors into colorArray? Your code there doesn’t show it, so I assume it’s initialized to black, which is all 0, which will have no affect on the sprite tinting.

What happens if you do `spriteRenderer.color = Color.blue’ ?