Reputation: 171
Is it possible to convert the HTML color names (i.e. given on w3cschools) to hex?
For example I want something like:
name_to_hex("Orange") # would return: #FFA500
I found this to be possible with matplotlib in this question.
Upvotes: 3
Views: 450