hit-moodle/moodle-local_onlinejudge — comment on commit aeebf1df89c8bc7b5476f3e8b916c39520d2a220
File:  line 0
By liuyu81:

I agree that, in general situations, the red color should be used with caution in the UI, and indicate exceptions / errors per se. But there is no silver bullet. When we narrow down the discussion to the context of online judging, and to where the "Accepted" messages appear, I would ask, why, after all, we are highlighting the "Accepted" status of solutions (whatever color it is)? IMHO, the acceptance status is the very piece of information that a student desires most after submitting a solution. And it seems to me that the #1 priority, in this situation, is to ensure that the "Accepted" status stands out from all rest information. Red FG over white BG is a good combination in terms of contrast, green FG over white BG is less eye-catchy according to the "Colors-UI" article you suggest. Concerning its symbolism or implied meanings, using the red color to indicate the "excitement" or "noteworthy" of an accepted solution is also justified.