Fix the pattern for hex color input.