What do you mean by open loop gain margin? I only know about loop gain margin at certain frequency with given the closed loop gain and open loop gain plot. Loop gain is the log subtraction of the open loop gain minus close loop gain at a given frequency. People use that to calculate the error of the closed loop feedback.
Phase margin usually refer the the phase from 180 at the open loop gain line crossing the close loop gain line OR at the point loop gain equal to 0dB.