Guests are more than welcome to wear whatever they are comfortable with, but it is preferred by the bride and groom for the dress code to be semi-formal, formal, or church attire.
It is preferred that guests wear light or dark green, purples, or gold/yellow. This is important especially if guests are attending the marriage sealing at the temple.