I am trying to change the color of the borders of the buttons in tkinter.
I tried : tk.Button.config(highlightbackground=COLOR)
but it says TypeError: configure() missing 1 required positional argument: 'self'
also, I want to make the border color using hex color codes.
You can't change the border color of buttons in tkinter. highlightbackground isn't for the border, it's for the highlight ring which lets you know when the widget has keyboard focus.
How to change border color of buttons in tkinter