A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hey,
You can add text color before or after background-color inside style tag. Hope this helps!
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if(@currentField <=@now ,'#f53337',if(@currentField <=(@now +7776000000) ,'#96882b','#458b50'))",
"color":"white"
}
}