A script that desaturates color when you are in a dark zone

Realistically, in a dark environment after your eyes adjust to the darkness the color should appear desaturated. Is there anyway to lower the saturation to make it realistic? I remember Rapidtoaster’s achievements mod that gave you an achievement if you stayed a long time in low light conditions. Also film grain would be nice.