diff --git a/ColorPicker/Helpers/ColorFormatHelper.cs b/ColorPicker/Helpers/ColorFormatHelper.cs index 1db8617..1b49d8f 100644 --- a/ColorPicker/Helpers/ColorFormatHelper.cs +++ b/ColorPicker/Helpers/ColorFormatHelper.cs @@ -37,8 +37,8 @@ private static string ColorToRgb(System.Drawing.Color c) private static string ColorToHsl(System.Drawing.Color c) { var h = Math.Round(c.GetHue()); - var s = Math.Round(c.GetSaturation()); - var l = Math.Round(c.GetBrightness()); + var s = Math.Round(c.GetSaturation()*100); + var l = Math.Round(c.GetBrightness()*100); return "hsl(" + h + ", " + s + "%, " + l + "%)"; }