I believe hex color codes are limited to accounts that have Twitch Prime or Twitch Turbo.
And to set it as a bot I’m not sure what the correct formatting but it should just be as you already have it. The help says
You can try sending this raw/bypassing TMI.js in case TMI.js is interferring/internally validating and blocking hexcode colors and validating the colors against the known list
