Find the geometric HSL hue opposite a supplied colour.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The input becomes HSL, its hue advances by 180° modulo 360, and unchanged saturation and lightness convert back to RGB and hex. The result is the opposite point on the HSL hue circle.
#FF0000
#FF0000 -> #00FFFF
Design checks find accents, chart themes create pairs, and colour lessons demonstrate hue-circle opposites.