"\033]11;#53186f\007"
So, bare minimum, I'll need to include # in future. you can /generate/ 24 bit color using only ; and digits...
When filtering ANSI I'm usually streaming the result to something that expects pure ASCII, and tuning sed to only accept two escape codes would be a pain in the neck.