Check the current settings
Enter cl_hud_color without a number in the console and record the value. Then enter bind F6 to see whether the key is in use. Save the existing binding if you need it, or choose a free key.
Set your colors
Enter bind F6 "toggle cl_hud_color 1 4 9". Each press cycles the HUD through white, blue, and green. Test it in practice and look at elements such as your health display. Crosshair color has its own setting.
Undo the changes
If F6 was unused, enter unbind F6. If it already had an action, restore the original binding. Then enter cl_hud_color with your previous value. A value of 0 uses the team color.