Fix JPX colors

Puh, finally. That was a tough one, because there were two independent issues.

Fixes the color/contrast issues reported in #3561 and #4358.
Colors of #2790 and #3181 are also good now.