In this example write the color name in the textbox and the entered color will assign to the ng-style directive and apply to the text displayed.
ng-style