It was found the brightness of each primary color LED device has changed with the change of temperature. The different brightnesses result in the distortion of white balance of the image. To correct the distortion,this paper presents Camma compensation at variant temperature for each primary color LED device, offset, thus ensuring the white balance. The Gamma compensation technique has overcome image color distortion resulted from the variant temperature.