Color Complementary Scheme screenshot

Color Complementary Scheme

Find a colour's complementary colour by rotating its hue 180° in HSL, with the hex code printed.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this page computes

Pick a colour and the page finds its complement: the hue rotated 180° on the colour wheel with saturation and lightness kept. The hex code is parsed to RGB, converted to HSL, the hue moved by half a turn and the result written back as a hex code, so #336699 at hue 210° returns #996633 at hue 30°. The answer is printed first and the arithmetic underneath it, so the rotation can be checked by hand.

Where it stops

The wheel is the HSL cylinder, not a pigment mixture: a complementary pair under paint or on a printer does not land on the same hue, and no colour-management profile is applied, so the numbers are sRGB arithmetic rather than a proof of how a screen renders. Input is a hex code or an rgb() triple; a colour name, a gradient or an alpha channel is refused with the two accepted shapes.

The rotation is arithmetic in this tab. Nothing is uploaded, nothing is stored, and reloading with the same colour prints the same hex code.

`#336699` at hue 210° returns `#996633` at hue 30°: the hue is rotated 180° in HSL with saturation and lightness kept, so the pair is opposite on the wheel by construction.

The wheel is the HSL cylinder, so a painted or printed complement does not land on the same colour, and no colour-management profile is applied.

How to use it

Pick a colour with the input or type a hex code, then press Run. The result is a single hex code with the rotation underneath it, so the arithmetic can be checked without another tool.

The arithmetic

The hex code becomes RGB, RGB becomes HSL, and 180° is added to the hue while saturation and lightness are copied. The HSL triple becomes RGB again and is written as six hexadecimal digits, rounding each channel once.

Where it stops

Saturation and lightness are not adjusted, so a very dark base gives a very dark complement. The rotation is on the HSL wheel, which is not perceptually uniform, and no gamut mapping is attempted when a channel would leave sRGB.

What to Expect

Best for

  • `#336699` at hue 210° returns `#996633` at hue 30°: the hue is rotated 180° in HSL with saturation and lightness kept, so the pair is opposite on the wheel by construction.
  • Seeing the result before copying it.

What this tool keeps

  • The colour you pick is converted in the browser and never posted, so the page works offline and retains nothing.

Sample input

#336699

Sample output

#996633 base #336699 hsl(210°, 50%, 40%) → hue 210° + 180° = 30°

Frequently asked questions

How do I use it?

Pick a base colour and press Run. The complementary hex code is printed first, then the base in HSL with the 180° rotation spelled out.

Is anything uploaded?

No. The colour is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The answer is sRGB arithmetic on the HSL wheel, not a pigment mixture, so it must not be read as a printing guarantee. Input must be a hex code or an rgb() triple; a colour name or an alpha channel is refused.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.