The density of mixture can be calculated from its composition as composition:
(1) | \rho = \frac{P}{R \, T} \cdot \sum_\alpha \ x_\alpha \cdot M_\alpha |
where
x_\alpha | mole fraction of \alpha chemical component |
M_\alpha | molar mass of \alpha chemical component |
T | mixture temperature |
P | mixture pressure |
R |
The relative density then can be found as:
(2) | \gamma = \left( \sum_\alpha \ x_\alpha \cdot M_\alpha \right) \big / M_{\rm ref} |
where M_{\rm ref} is the molar mass of the reference fluid (usually, water or air depending on the context).
The (2) does not depend on mixture temperature and pressure explicitly but it does implicitly through the corresponding value of the reference fluid molar mass M_{\rm ref}.
The usual practice is to calculate the fluid mixture density at STP and then use pressure-density correlations to predict its properties at various temperature and pressure.
Here is the list of the molar mass for popular pure petroleum hydrocarbons : Alkanes.
See Also
Natural Science / Chemistry / Chemical Substance / Mixture / Mixture composition
[ Pure substance ][ Mole fraction ]
[ Alkanes ]