What is the mass of a liquid that has q volume of 2.5L and a density of 3g/cm cubbed?

I got 7.5, but I am unsure if I should have converted L to mL

density is mass/volume,

so mass = density*volume

2.5L*3g/cm^3 is 7.5, but the units are wrong

2.5L * 1000cm^3/L * 3g/cm^3 = 7500g or 7.5kg