Hi Koti Reddy,
the post Color table cells depending on value of entry in row (UI5 & JSON) should answer your question.
In the post two ways are described. Both ways use a formatter. The first way uses writeToDOM with a CSS selector. The second one adds a new style class via the formatter.
In the post there is a linked example on JSBin.
Regards,
Florian