Can any1 help me figure out how to use the format of a cell in an = if statement.

ex.
=IF(F12="",$I$2,IF(E12="",IF(F12>D12,$J$2,$K$2),IF(F12>E12,$J$2,$K$2)))

i want it to copy the color format of cells I2, J2, and K2, not what the value of the cell is.

any ideas?