W Ursa Majoris (W UMa)-type contact binary systems (CBs) are useful
statistical distance indicators because of their large numbers. Here,
we establish (orbital) period--luminosity relations (PLRs) in 12
optical-to-mid-infrared bands ($GBVRIJH\Ks W1W2W3W4$) based on 183
nearby W UMa-type CBs with accurate Tycho--{\sl Gaia} parallaxes. The
1$\sigma$ dispersion of the PLRs decreases from optical to near- and
mid-infrared wavelengths. The minimum scatter, 0.16 mag, implies that
W UMa-type CBs can be used to recover distances to 7\%
precision. With Gaia DR 2, the accuracy of PLRs improve to 6\%. The further improvement of PLRs need knowledge of parameter, such as mass ratio, inclination and fill-outer factor. The effects of these parameters could be evaluated by SONG for more than 100 CBs. With SONG and Gaia DR 3 or 4, the PLRs of CBs accuracy will be better than 5\%.