I need help knowing if Im doin this Right

So I have this script

using UnityEngine;
using System.Collections;

public class TextColor: MonoBehaviour {
	private Color color;
    void Awake() 
    {
        color = Color.black;
    }
}

and I’m trying to make a script to turn a 3d text black… since it comes in white… Anyone know how to help.

Try this:

renderer.material.color = Color.black;