That's VBA code. Here's a quick example how you can use it:
To add this code, hit Alt+F11, double click on Sheet1, and copy/paste it into the editor.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("D1").Interior.Color = RGB(Range("A1"), Range("B1"), Range("C1"))
End Sub