Never color alone
Never let color be the only thing that carries meaning. Pair it with an icon, shape, position, or text so it survives color-blindness, glare, and grayscale.
A form error shows red AND an icon AND a message — not just a red border.
Both fields flag an error in red