Template light hex colors

I have a template light that I am using to control a BLE light strip via shell commands.

I need to provide the color to the shell command in hex format. It looks like templates only support HS format, and I don’t understand how to do HS to Hex. I understand HSV and HSL, but how can you convert HS to Hex?