minimum and maximum values in red and green