You cant change this on a property directly. You'll need to create a copy, change and set it back. Eg.
Color c = textMesh.color;
c.a = 1.0f;
textMesh.color = c;
Also don't forget, the range is 0..1 not 0..255
Don't forget to call
textMesh.Commit() once you're done.