There is no such parameter in the formulas, which changes the color. Formula to calculate the value, they don't control the formatting. You just need conditional formatting. Just have a misconception about it.
Because it works with only one string
That statement is incorrect. Set the conditional formatting as in the screenshot, all cells in column K, starting with the third will be green if the corresponding cell of column L more corresponding cell of column B. For red similar.