How do I change colors of an axis?

That is, the default color for the XYZ axis are RGB but I want to make my axis a different color e.g. all grey. How do I do that? Where can I change the settings? Should I script it?

Yes, you can only color the handles thru scripting, check this documentation with example: