"System" color for warnings (red)

Someone asked on Stack Overflow:

I want to use system colors when it’s possible. How to choose colors which aren’t included in system colors?

Both SystemColors class of WPF, SystemColors class of WinForms and COLOR_* constants for GetSysColor API function contain no colors which can be used for warnings. Warnings are usually red, but there’s no guarantee it won’t be close to the system colors the user uses.

I want to display items in a ListBox using standard system colors (usually black text on white background for unselected items, white on navy for selected, white on light gray for selected unfocused). When an item is problematic (for example, operation it relates to has failed), I want to make its text red to draw attention. Using single color for all three cases (selected, selected unfocused, unselected) is already problematic, because I find it hard to read red text on light gray background.

Using only custom colors and thus avoiding the problem is unacceptable behavior. Users expect programs to respect their settings.

How to choose correct color for warnings?

I posted the following answer, which was chosen as the accepted answer and received 3 upvotes:

Possibly a new approach is worth consideration. Using colored icons such as the windows event log. Keep all text consistent and use colored icons to visually distinguish different types of data.


Originally posted on Stack Overflow — 3 upvotes (accepted answer). Licensed under CC BY-SA.

signed letter b

Dad. Geek. Gamer. Software developer. Cloud user. Old Car enthusiast.  Blogger.


Top Posts


profile for Nate on Stack Exchange, a network of free, community-driven Q&A sites
a proud member of the blue team of 512KB club
Thoughts, opinions, and ideas shared here are my own. © 2026 Nate Bross.