Here is an image showing the pin diagram of this transistor.
Classification of hFE
The KSA812-G transistor can have a current gain of 200 to 400. The gain of the KSA812 will be in the range from 90 to 600, for the KSA812-L it will be in the range from 300 to 600, for the KSA812-O it will be in the range from 90 to 180, for the KSA812-Y it will be in the range from 135 to 270.
Marking
The KSA812-G transistor is marked as "D1G".
Complementary NPN transistor
The complementary NPN transistor to the KSA812-G is the KSC1623-G.
Replacement and Equivalent for KSA812-G transistor