Contrast percentage fix for #1144