A device has a processing unit to implement a set of operations to use both luma and chroma information from a scene of an image to dynamically adjust exposure time and sensor gain. The processing unit collects bright near grey pixels and high chroma pixels in the scene. Based on the collected pixels, brightness of the near grey pixels is increased to a predetermined level without saturation. At the same time, the high chroma pixels are kept away from saturation.