define darken and lighten functions for hex color strs