In this paper, we obtain some exact L2 Bernstein-Markov inequalities for generalized Hermite and Gegenbauer weight. More precisely, we determine the exact values of the extremal problem Mn2(L2(Wλ),D):=0=p∈Pnsup∫I∣p(x)∣2Wλ(x)dx∫I∣Dp(x)∣2Wλ(x)dx,λ>0, where Pn denotes the set of all algebraic polynomials of degree at most n, D is the differential operator given by D={dxdorDλ,(1−x2)21dxdor(1−x2)21Dλ,ifWλ(x)=∣x∣2λe−x2andI=R,ifWλ(x):=∣x∣2λ(1−x2)μ−21,μ>−21andI=[−1,1], and Dλ is the univariate Dunkl operator, i.e., Dλf(x)=f′(x)+λ(f(x)−f(−x))/x. Furthermore, the corresponding extremal polynomials are also obtained.