o
mni-color
Code Playground
// Return a `Color` or any valid color format (e.g. a hex string) to see the color visualized const color = new Color("#f282b3"); console.log("color:", color); const updated = color.mixWith([new Color(), new Color()], { space: "OKLCH" }); console.log("updated color:", updated); const result = updated.getMonochromaticHarmonyColors()[1]; return result; // rendered below if valid
Output
Returned color
#b569a1
> color: Color(#f282b3)
> updated color: Color(#7b3d6b)
Reset playground