You can achieve this using css itself.
For changing the color of textarea control (input), something like below:
.mat-form-field-empty.mat-form-field-label {
color: green;
}
For changing the underline-color when it's highlighted-
.mat-form-field-underline {
background-color: red;
}
Add this in styles.scss (or styles.css).
Alternatively, you can make use of themes:
Angular Material UI component library[
^]