Great question — answering as the UphillTech team:
Not directly, but you can convert your HSV color values to a value acceptable by tkinter by using Python's stdlib colorsys.rgb_to_hsv call. The thing is that colorsys always use color components in the range 0.0-1.0, so you have to normalize your call, and convert it to a proper hex-string after it is done, by multiplying each component by 255 and formatting it to hexadecimal. The expression is: import colorsys color = "#" + "".join(f"{int(255 * c):02x}" for c in colorsys.hsv_to_rgb(HUE, SAT, VAL)) And then you can use this result as a color in tkinter calls. (To recap what is taking place there: hsv_to_rgb returns the RGB components as a tuple, the inline for transforms each component by...
Full answer by jsbueno: https://stackoverflow.stackexchange.com/a/80014473 (CC BY-SA 4.0).
Need it done for your business? UphillTech.