XMColorRGBToHSV function (directxmath.h)
Converts RGB color values to HSV color values.
XMVECTOR XM_CALLCONV XMColorRGBToHSV( [in] FXMVECTOR rgb ) noexcept;
Color value to convert. X element is Red, Y element is Green, Z element is Blue, and W element is Alpha. Each has a range of 0.0 to 1.0.
Returns the converted color value. The X element is Hue (H), the Y element is Saturation (S), the Z element is Value (V), and the W element is Alpha (a copy of rgb.w). Each has a range of 0.0 to 1.0.
XMColorRGBToHSVis new for DirectXMath and is not available for XNAMath 2.x.