International audienceContext. Radiative transfer plays a major role in the process of star formation, the details of which are still not entirely understood. Aims: Many previous simulations of gravitational collapse of a cold gas cloud followed by the formation of a protostellar core have used a grey treatment of radiative transfer coupled to the hydrodynamics. However, the dust opacities that dominate circumstellar extinction show strong variations as a function of frequency. In this paper, we used a frequency-dependent formalism for the radiative transfer to investigate the influence of the opacity variations on the properties of Larson's first core. Methods: We used a multigroup M1 moment model for the radiative transfer in a 1D Lagrang...