Temperature is one of the important environmental factors affecting plant growth, yield and quality. Moreover, appropriately low temperature is also beneficial for tuber coloration. The red potato variety Jianchuanhong, whose tuber color is susceptible to temperature, and the purple potato variety Huaxinyangyu, whose tuber color is stable, were used as experimental materials and subjected to 20 °C (control check), 15 °C and 10 °C treatments during the whole growth period. The effects of temperature treatment on the phenotype, the expression levels of structural genes related to anthocyanins and the correlations of each indicator were analyzed. The results showed that treatment at 10 °C significantly inhibited the potato plant height, and the chlorophyll content and photosynthetic parameters in the leaves were reduced, and the enzyme activities of SOD and POD were significantly increased, all indicating that the leaves were damaged. Treatment at 10 °C also affected the tuberization of Huaxinyangyu and reduced the tuberization and coloring of Jianchuanhong, while treatment at 15 °C significantly increased the stem diameter, root-to-shoot ratio, yield and content of secondary metabolites, especially anthocyanins. Similarly, the expression of structural genes were enhanced in two pigmented potatoes under low-temperature treatment conditions. In short, proper low temperature can not only increase yield but also enhance secondary metabolites production. Previous studies have not focused on the effects of appropriate low-temperature treatment during the whole growth period of potato on the changes in metabolites during tuber growth and development, these results can provide a theoretical basis and technical guidance for the selection of pigmented potatoes with better nutritional quality planting environment and the formulation of cultivation measures.