How the WowLayers palette generator works
The generator begins with the five colors from the working Color Lab component: #264653, #2A9D8F, #E9C46A, #F4A261, and #E76F51. Each slot also stores a true-or-false lock state. Clicking a swatch or preview segment copies its lowercase HEX value, while Copy All Colors joins the current five codes with a comma and a space in their displayed order.
Generate New Palette visits all five slots from left to right. A locked slot is returned unchanged. Each unlocked slot consumes three random values: hue is the floor of a number from zero up to 360, saturation adds a floor from zero through 29 to a base of 60, and lightness does the same with a base of 40. The resulting ranges are hue 0–359, saturation 60–89%, and lightness 40–69%.
Each random HSL triple passes through the source component’s exact compact HSL-to-HEX function. Channel values are multiplied by 255, rounded, converted to base 16, and padded to two digits. Colors are generated independently. The tool does not claim that the random result is a measured harmony; use the dedicated color wheel when you need complementary, analogous, triadic, tetradic, or split-complementary hue relationships.
Locking a slot changes only that item and does not copy it. Locks and generated colors live in browser memory and reset when the page reloads. Export Palette creates a plain-text Blob from the same comma-separated lowercase string used by Copy All Colors and downloads it as color-palette.txt. The preview, codes, lock labels, and copy targets all update from the same five-item state.