The reconstruction of optical patterns with various colors by compute simulation is described. The conversion method for three-primary colors of RGB and visible light spectrum is proposed. The function relation between three-primary colors of RGB and single color wavelength is established. The color parameters for plotting function are controlled through combining light intensity with three-primary colors of RGB. The bright and dark color patterns of single color light is obtained. The simulation measurement and error analysis for the patterns are carried out.