LocalTuya Color Mapping Question

I am attempting to setup a set of Lumary (AngelHalo) L-OSL6C1 Landscape Spotlights up. They were gifted to me and they do the trick for what I need. I have had moderate success using them with the native Tuya app, however, I want to integrate them into my Homeassistant, as it is pretty much the only device I don’t have full control over with HA. I am able to turn them on and change the color of all the lights together, as well as dim them and change to preset scenes. I have figured out, using the Tuya IOT device log, that I can use DP 59 to set each fixture’s color individually, if I setup the DP as a selector. In the Select Options Value, however, I must enter a code like this: AQIBALo9ZAAAgQAF, for each light and each color. I have figured out that the ‘AQIBA’ portion is required for each light, and the ‘gQAF’ is the light’s identifier, the last letter identifies the light, a = 1 and f = 6. So the middle portion ‘Lo9Z’ determines the color, which in this case is Hex #63EFFF . I cannot figure out how to actually convert the Hex/RGB value to the ‘Lo9Z’ value. I found the hex of that value by using the light control color wheel, which only will control all of the lights together.

I feel that there has to be an easier way to do this, maybe using some sort of templated sensor that converts a hex value to the required tuya value? Has anyone dealt with this before?
Thank you!