print(color['yellow'] + 'string' + color['off'])
color['yellow'] = '\x1b[1,33m'
print(color['yellow'] + 'string' + color['off'])
Python: octal escape character \033 from a dictionary value translates in a print statement to a UTF-8 character instead