I know I can call Tkinter.Tk().winfo_rgb(color) to get a tuple of values that represent the named color.
for instance Tkinter.Tk().winfo_rgb("red") returns (65535, 0, 0)
The problem is it also opens a window. I was hoping to abstract some color calculations into a generic color class, and handle whether or not the class was instantiated with "red" or "#ff0000" or maybe even some other formats.
With the class abstracted, I don't have a tk parent to pull this info from without instantiating a new window, or passing in a parent.
Is there any way to get this kind of colorname to hex value conversion without having an instantiated Tk window?