We present an analysis of the Hipparcos photometry of the contact binary systems UX Ret and CN Hyi. The Wilson-Devinney code is employed to model the V band light curve for several fixed values of the mass ratio. From the quality-of-fit of the different solutions a final solution is derived for each system. Absolute values of the system are derived using the parallax data from the Hipparcos catalog. Analysis of the V band photometry of two stars (EL Aqr and FN Cam) with spectroscopically known mass ratios is also provided as a validation for the methods adopted for this study.