Extracting HUE gradients

Hello, given an image I am trying to extract the palette of HUE colors, like the one below but only containing the HUE colors from the image. I tried to extract HUE values and sort them, but then I can’t find a way to build that gradient. Any suggestion?

hue_palette.toe (3.6 KB)

You could route that to Channel mix and convert back to RGB like this:
(don’t forget to set its pixel format to something that accommodates all 4 color channels)

If you wanted to be more selective I guess you could sample only few colors from it and use it in a ramp TOP (using the attached ramp_keys DAT)