Photoionization of atoms or molecules is a fundamental process in strong-field physics, essential for generating high-order harmonics and producing attosecond pulses. Here, we investigate how a three-color laser field, consisting of wavelengths at 800 nm and its second and third harmonics, photoionizes N2 molecules and evaluates its effect on the properties of attosecond pulses. It has been discovered that by altering the relative phase, these harmonics periodically influence molecular ionization, increasing the discreteness and strength of the attosecond pulse trains. Three-color field driving dramatically raises the pulse peak while decreasing the width of the strongest peak pulse, whereas two-color field driving just slightly enhances the pulse intensity and duration. Furthermore, the effectiveness of harmonic production is significantly increased by varying the laser intensity ratios. Even though the efficiency and pulse intensity of the three-color field are limited by conversion efficiency, attosecond pulses with higher intensities can be produced with proper parameter tuning at lower ionization rates. These findings offer a significant foundation for precisely controlling attosecond pulse generation. Ocis codes320.7110; 320.7120.