[TOX] okHSL ColorPicker
2026-11-24 02:00:27.219340ZokHSL Color Picker for TouchDesigner
I've been doing a ton of work in TouchDesigner recently, and there's always one aspect of the software that I felt was lacking:
The Color Picker!!!
The existing color picker:
Let's take a look at the current color picker inside TouchDesigner, I'll add a Ramp TOP and select a color...

Oh boy... that's not great. It's HSV, and clicking the colorful icon next to the ramp just switches the sliders to RGB mode. This picker is severely lacking, you can't easily navigate the whole color space, and also, HSV is not a perceptually uniform color space... 😕
My solution: okHSL inside a custom color picker component.
I won't write out all the details of okLAB or okHSL here. In short, perceptually uniform color spaces abstract the concept of color “value” into a single channel and hue information into others. They ensure that all colors look uniformly the same (value wise) regardless of the hue you are selecting.
I'll direct you to this really good post by Björn Ottosson if you'd like to learn more of the details and see some reference code.
(Thanks to Björn Ottosson, I have included their code inside this component to help generate the picker UI)
Component Details/Screenshots

- Interactive UI in the panel viewer.
- TOP outputs for the current selected color, and a strip of selected color history.
- CHOP outputs for the current selected color in HSV, HSL, and RGB.
- Python Extension function to set the HSL by hand:
SetHSLcallable on the op.
