Am I able to change the badge color?

I’m setting up a Raspberry Pi cluster and have set up ping sensors to monitor the Pis and display if they are on or off. I find the current icon difficult to see if one is off vs. on at a glance and would like to change it’s color to:

On - Green
Off - Red
Above certain MS - Yellow

Is this possible? if so can someone point me in the right direction? So far my Google skills hasn’t returned any valid results.

image

Should be possible with: