Constraining bag constant for hybrid neutron stars