Added getContrast mixin.