I'll agree with Rocky that bigger determines luminosity but bigger may also be cooler. Many stars, such as red giants, are very large ... and quite cool.

For calculating escape velocity the mass of the star is irrelevant. It is rather tha mass per unit of volume that matters.

Take, for example, a massive star. Light escapes. Compress that star into a black hole and light can not.

HTH


DA Morgan