By taking advantages of the two-photon polymerization induced by femtosecond laser and the versatility of the femtosecond laser microfabrication, we demonstrate a femtosecond laser microfabricated polymeric grating for spectral tuning, in which gratings of different thicknesses achieve gradual tuning of a white incident light into output lights of different colors ranging from cyan to red, which is in good agreement with the simulation. Through the selection of different grating parameters, the technique developed in this study offers the possibility to tailor the performance of the grating to achieve specific grating efficiency or complete extinction at specific wavelengths, which is promising for measurements and applications in spectroscopy, sensing, integrated optical systems, and biomedicine.