I am using the turtle module in python and I want to obtain a numeric representation (RGB, Hex, etc.) of the color instead of the name as a string.
from turtle import Screen
print(Screen().bgcolor())
The example above prints >>> white and I need to get a value like >>> #FFFFFF or >>> rbg(255, 255, 255) instead.
I am looking for creating complementary colors for arbitrary values so the color name is not useful enough.