Continuous color scale with distinct colors for under/oversaturated pixels

This should get you there, you are searching for a custom colorbar