Should be OK. Perhaps the base resistor is a little low at 100 Ω, 1K seems better (Ibase = (supply - drops) / R = (5V - 2 V) / 1K = 3 mA; verify if your transistor will saturate with that currrent at the base)
What's the coil resistance?
The diode should be a switching type and should be able to handle the coil current momentarily.
How much current/voltage can the I/O pin source at what voltage/current?
I don't have ucontroller but receiever for ramp. This receiver have output 8V while i press button on remote control. When i press button would like to relay activate.
The relay's supply voltage is 6V because i have 6V relay