Yellow is NEVER the common sense option, it is always the wrong option.
That said it depends on which league the match is, the PL the referee has a pretty graphic with home team shirt and goalie shirt on the left and away team shirt and goalie shirt on the right and in the middle is the referees shirt and they are told what colour to wear. That arrives with the appointment email. One referee who shall remain nameless ignored a wear yellow twice to my knowledge, swapping to purple one game last season and blue one game this season.
I believe in the football league they’re still considered to be big boys and girls and are trusted to make their own choice. That could have been changed by now, certainly for SG2.
At UEFA level they are told what to wear but the final decision is made at the security meeting on the morning of the game when the various kits get laid out on a table together.
As an aside 3 foreign FIFA refs have texted me photos of the kit laid out along with a screenshot of the email telling them to wear yellow and have stepped out in red. I am officially more scary than you Mr Rosetti - take note!!
Never ceases to amaze me that these guys spend 15/20 odd years working their way to the top and choosing their own kit colour only to reach the top and get treated like toddlers by being told what to wear!! 🤷♀️