HUD Progress Bar Change Colour as it progresses

Would there be any way to have a third colour, eg it goes Red at 0%, Green at 50% and 100% is blue