The laws of the game were established before the #WorldCup2022, and as far as I know, the color of a captain's armband is not something a referee can issue a yellow card for: 

Kane to wear armband despite yellow-card risk https://t.co/Kvncb68Rq5