With the development of intelligent algorithms, computer color matching has become an important method to improve product quality and save labor cost in printing and dyeing industry. In this paper, based on the K-M optical theory and the color difference theory of CIELAB uniform color space, and combined with the latest heuristic optimization algorithm "Young's Double-Slit Interference Experiment Optimizer (YDSE)" proposed in 2023, a feasible solution to generate textile dyeing formulas quickly is proposed. The model is tested with 12 textile target samples, and the experiments show that the proposed dyeing formulation model can converge quickly, and the color parameters of the generated scheme are closer to those of the real samples, with the maximum parameter error not exceeding 10-2 orders of magnitude, and the predicted color differences of the optimal scheme are all in the range of 10-6 orders of magnitude or less. Simultaneous testing of the sample formulations using three other common optimization algorithms, WOA, HHO, and IHHO, shows that their predicted color differences are greater than those of YDSE, proving the reliability of the model.