color:triad()

{{since('20220807-113146-c2fee766')}}

Returns the other two colors that form a triad. The other colors are at +/- 120 degrees in the HSL color wheel.

local a, b = wezterm.color.parse('yellow'):triad()