The KSD227O is manufactured in a plastic TO-92 case. When looking at the flat side with the leads pointed downward, the three leads emerging from the transistor are, from left to right, the emitter, base, and collector leads. Here is an image showing the pin diagram of this transistor.
Classification of hFE
The KSD227O transistor can have a current gain of 70 to 140. The gain of the KSD227 will be in the range from 70 to 400, for the KSD227G it will be in the range from 200 to 400, for the KSD227Y it will be in the range from 120 to 240.
Complementary PNP transistor
The complementary PNP transistor to the KSD227O is the KSA642O.