Hi,
Melanie provided the correct code to your initial question, so I kindly ask to be respectful. Thanks.
Now, I see you actually have a very specific need and, unfortunately, you can’t do conditionals based off of colors, in CSS.
The closest option to what you need, is to target the bars by their percentage value:
.bar[data-value="75"] .bar-text {
color: #000000 !important;
}
If you have a bar at 75%, the code above will turn the text inside it, black. Hope this helps.
Regards,
————————————————————————————————————
Cosmin
Support Assistant