Non-linear ramsey resonance in the optical region