Unfortunately, there is no easy way to change the foreground of a button in the ttk
library. This is always the standard gray Windows, as in the picture.
But you can easily get what you want with the usual tkinter.Button
if you set the correct parameters. The following is an example script:
import tkinter as tk root = tk.Tk() btn = tk.Button(root, bg='#000000', fg='#b7f731', relief='flat', text='hello button', width=20) btn.pack() root.mainloop()
And this is how it will look:

Also, the shade of green that I chose was just an example that I thought was very close to what you wanted. But you can specify any desired hex color code. If you need to rotate the RGB value to hex, a simple trick is to use str.format
like this:
>>> rgb = (183, 247, 49) >>> '#{:02x}{:02x}{:02x}'.format(*rgb) '#b7f731' >>>
source share