simple and fast way to use hex color codes in python, pip install colorme
from colorme import color_text, bold, underline
print(color_text("Hello in red!", "#ff0000"))
print(color_text("Background blue", "#0000ff", background=True))
print(bold(color_text("Bold green", "#00ff00")))
print(underline(color_text("Underlined orange", "#ffa500")))