The Relay acts as Cable, but can be turned on or off depending on the redstone configuration.
Devices connected after the Relay will be on or off depending if the Relay is on.
You can recolor the Relay in 2 ways:
Using a dye on the Relay
Combining the block with a dye as a crafting recipe