Unfortunately, excel won't "react" automatically to the change of a color (it simply doesn't trigger any event)...
On the other site: if you filter them out, you can simply right-click the row-number and hide it. If you set the filter to "select all" all rows in range will be shown again.
This way you can hide all rows you don't want to show up (and you won't need to change any color)
EDIT
If you still want to macro it, you can do it like that:
Hit Alt+F11 to open up the VBA-Console and double-click on ThisWorkbook.

Then paste in the code-window:
Public Sub hideRow()
If Selection.Interior.Pattern <> xlNone And Selection.Count = 1 Then
Selection.Interior.Pattern = xlNone
Selection.EntireRow.Hidden = True
End If
End Sub
Now Save it as a .xlsm-file and afterwards click the quick access config button and then "More Commands..."
In the new window select the "Choose commands from" to "Macros" and change the "Customize Quick Access Toolbar" dropdown to "For [Workbookname].xlsm".
On the left site select "ThisWorkbook.hideRow" and then click "Add >>" at the center.
Optinal: Select the macro on the right side and hit "Modify...". With the new window, you can change the symbol and the name to be shown.

Click "OK" to accept all the changes.
Now, whenever this workbook is active, you will see your macro-symbol at the Quick Access Bar.

if you click it, while 1 cell is selected and has any fill, it will be set to "no fill" and the whole row will be hidden. If you change your filters, the hidden row will act like nothing ever happen to it.
If you need to change the way this macro works, just ask. Unfortunately i can't change the fact, that changing a cell-color can't trigger macros.