An error message should stand out in contrast to the core color palette on your website. For example, if your site mostly uses blue and white, consider an error message that features red text on a gray background.