Floating label color

Hi everybody,

I’m looking for a solution to change the color of the label and the underline when floating in an input field.

Now it’s in primary color but I want to change it to black… I’ve tried some solution found on this forum but nothing works for me.

Thanks for your help.