How to chose a relay driving transistor from your spares bin:
1) Characterise your load
What's the coil voltage?
What is coil rated current?
The OP has already stated: 12V 75mA
2) Characterise your selected part(s) - in this example I have a BC547, a 2N2222 and a big bag of BC337.
a) Get hold of the data sheet for the transistor, and look for the "Absolute Ratings" part
b) Look for the Collector Current (lc - that's 'eye'-'cee'). Is it sufficient to drive your relay? (BC547 - 100mA, 2N2222 - 800mA, BC337 - 800mA)
c) Look for the emitter-collector voltage (Vceo). Is it sufficient to withstand the voltage across the relay? (BC547 - 45V, 2N2222 - 30V , BC337 - 45V)
From this information:
All three transistors can handle the voltage (worst device 2N2222 @ 30v, +150% margin)
The BC547 can handle the current, but there isn't much margin. The 2N2222 and BC337 can both handle >x10 the expected current.
The relay may also draw a transient current when energising - that's when your safety margin becomes useful - more margin, the less likely that the transistor will fail prematurely.
The 2N2222 has a TO18 case, and the BC337 and BC547 have a TO92 case.
I would leave the BC547, and 2N2222 for another project, and use the BC337, with the following reasons
i) The BC547's low Ic sends it to the back of the queue
ii) The 2N2222's metal TO-18 case would be better used in case where a higher dissipation is required (i.e. linear operation rather than being driven into saturation)
iii) I have lots of BC337's because that's my jellybean part.
Note that this selection process should be carried out when you purchase your jellybean parts - there is a reason why I have a bag of BC337s.
So going back to the beginning, if I were the OP and only had a couple of BC147's in my spares box, I would order some BC337's (to the first price break) rather than 2N2222 solely on the higher Vceo rating (one for the project and the other 9/19/24 for the spares box)