I know that the direct conversion from RGB to HSV/HSB is difficult. But the values I get are far away from my expectation.
compare to http://www.rapidtables.com/convert/color/hsv-to-rgb.htm and http://www.rapidtables.com/convert/color/rgb-to-hsv.htm
var color = Color.FromArgb(255, 128, 128) // #FF8080
var hue = color.GetHue();
var saturation = color.GetSaturation();
var brightness = color.GetBrightness();
// Expected:
~ 0
~ 0.5
~ 1
// Actual:
~ 0
~ 1
~ 0.75
What am I doing wrong?