How do I change text color in my Header?

I believe the header primary color only applies to the native header of Discourse, not the areas you show in your first screenshot, which are custom.

You probably need to customize this with CSS.

You can go there and learn some useful stuff about it. It will greatly help you next time you need such customization:

And be aware of this: