Python termcolor as HEX

986 Views Asked by At

How I can use python termcolor with HEX? I want make something such this:

print(colored('hello', HEX="#eb3434"))
1

There are 1 best solutions below

1
Daweo On

In terminal

Then take a look at colorama if external module is option. It works in many operating systems, it support named color, but I do not know if it does support CSS hex codes.