Thanks, Gareth.
I did that, and used Color Function Preset instead.
Good color combinations. However part of the problem remains since #84141Eis the my site's "official" color, and Color Function has a predefined palette that automatically chooses the other color tones used by Moodle based on the brand color.
I will keep trying.