EXCEL seems to have no way to judge the color generated by conditional formatting, it must be done with a formula

Cell J2 array formula
HTML Code: 
Cell J3 array formula
HTML Code: