We develop an approach for combining illuminance and spectral power distribution of the LED and ambient light and apply our technique for developing an LED camera flashlight balancing the illuminance contrast between object and background. Our method uses the closed loop, multiobjective optimization comprising: (1) characterizing the lighting task by illuminance, correlated color temperature (CCT), and statistical color quality indices that include a set of Statistical Color Quality Metrics and the Color Rendition Index (CRI) implemented with indexes of S (saturation) or D (dulling); (2) measuring the illuminance and the spectrum of the ambient light on the target lighting surface, which might depend on all the sources proving illumination and on the reflected light; (3) determining the desired illuminance of the LED source on the target lighting surface; (4) calculating the desired luminous flux of the LED source according to the desired illuminance; (5) constituting the SPD of the LED source; (6) calculating the relative spectra counts of the LED source and the ambient light on the target lighting surface (7) calculating the CCT and statistical color quality indexes of the combined light; (8) repeating the above steps until the resulting SPD is close enough to the expectation. Using the above method, an LED camera flashlight has been designed, which works together with usual fluorescent ambient light and generates working lighting environment with high fidelity and high CCT (6000K). The spectrum and luminous flux of the LED lamp is automatically tunable with a change of the ambient light.