In Star Trek: The Original Series, Captain James T. Kirk (William Shatner) consistently wears the gold (sometimes appearing greenish due to lighting and fabric) command‑division tunic. The iconic color‑coding is:
The “redshirt death” trope applies to security personnel who frequently perish on away missions, not to the captain. Kirk never dons a red shirt on screen in TOS.