Convert RGB to HSV

How to convert RGB to HSV for colors,Thanks!

We only have lookup tables to convert RGB565 to (RGB88, YUV, XYZ and LAB). I think you can use the XYZ then convert to HSV. or you could just use LAB.