How do you set text color by name?

This sample project includes a file of color names and codes: