diff --git a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs index 1d9b45216b..8ed8eea6d0 100644 --- a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs +++ b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs @@ -79,9 +79,9 @@ namespace ColorPicker.Helpers /// The see cref="Color"/> for the hexadecimal presentation /// A hexadecimal representation of a RGB color private static string ColorToHex(Color color) - => $"{color.R.ToString("X2", CultureInfo.InvariantCulture)}" - + $"{color.G.ToString("X2", CultureInfo.InvariantCulture)}" - + $"{color.B.ToString("X2", CultureInfo.InvariantCulture)}"; + => $"{color.R.ToString("x2", CultureInfo.InvariantCulture)}" + + $"{color.G.ToString("x2", CultureInfo.InvariantCulture)}" + + $"{color.B.ToString("x2", CultureInfo.InvariantCulture)}"; /// /// Return a representation of a HSB color