HSL to Hex
Turn computed color math back into something you can actually use
The mirror image of Hex to HSL, and just as absent from WAS's own README by name - but the job follows straight from the name: take hue, saturation, and lightness values and convert them back into a hex color string. If Hex to HSL is how a picked color becomes numbers you can do math on, this is how the result of that math becomes something you can actually display, save, or hand to a tool that expects a hex string rather than three separate numeric sliders.
Where this earns its keep is anywhere you're generating colors rather than picking them. Walk hue from 0.0 to 1.0 in even steps and convert each one back to hex, and you've got a full rainbow of evenly-spaced colors for a gradient or a palette - no eyeballing, no manual color-picker clicking for each stop. WAS's own Image Rotate Hue documents its hue_shift parameter in exactly these terms (0.0 is no change, 1.0 is a full rotation around the wheel), so this is the same color-wheel math applied to generating new colors instead of shifting an existing image's hue. Take a base color, compute a few HSL variants at different lightness or saturation levels, convert each back to hex, and you've built a coordinated set of tones programmatically rather than by hand.
It also matters for anywhere a color needs to leave the world of node math and become text - a filename token, a label overlay, metadata saved alongside an image, or feeding into any WAS node further downstream that specifically expects a hex-formatted string input rather than three loose numbers.
Input is the HSL breakdown - separate H, S, and L values, mirroring whatever Hex to HSL outputs on the other side of this pair. Output is a single hex color string, formatted the way you'd expect to paste directly into a color picker or a CSS-style value.
Installing it: ComfyUI Manager, search "WAS Node Suite," install, restart - the quick route. Manual install: cd ComfyUI/custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui, then pip install -r requirements.txt (portable: python_embeded\python.exe -s -m pip install -r requirements.txt; manual/venv: activate the venv first), restart ComfyUI. No model, no unusual dependency - this is color-space arithmetic, nothing more.
Where it bites: almost nowhere on its own, since there's no external moving part involved - just make sure the H, S, and L values you're feeding it are actually in the ranges the node expects (hue typically 0-1 or 0-360 depending on convention, saturation and lightness typically 0-1 or 0-100), since feeding a 0-360-style hue into a node expecting 0-1 is the kind of quiet unit mismatch that produces a wrong-looking color rather than an obvious error. Beyond that, the standing caveat for the whole pack: WAS Node Suite has been unmaintained since December 2023 (its README says "Retired"), and the community's recurring complaint is the entire suite failing to import after a ComfyUI update rather than individual nodes breaking on their own - check your console for that before troubleshooting this node specifically.
Inputs (0)
No inputs
Outputs (0)
No outputs