The linked cell method is widely used in the discrete element method (DEM) to detect contact between particles because of its high efficiency for uniform particles. However, the efficiency is reduced for polydisperse particles which are common in nature and engineering applications and have a wide size range. In this paper, a hierarchical linked cell method based on scale-proportional multi-level DEM grids is developed to improve the efficiency for polydisperse particles. The performance of the hierarchical linked cell method is verified by simulating different polydisperse particles. The results show that the hierarchical linked cell method can significantly reduce the elapsed CPU time of contact detection in all simulated cases. The scale proportion and the number of levels of the DEM grids are found to be two important parameters influencing the efficiency improvement. The elapsed CPU time decreases as the scale proportion decreases or as the number of levels increases. For a given scale proportion, the optimal number of levels to achieve maximum efficiency should satisfy two conditions: (1) the grid cell granularity is less than 10; (2) the exponential decrease of the grid cell granularity with the number of levels is broken.