What Is a Complementary Color? 180° Rule and HSL Angles

Contents
Where does the "angle" on the color wheel actually come from?
The HEX color codes we use every day (like #3B82F6) describe how much red, green, and blue a color contains, so on their own they're not an angle. The angle is one of the three values you get when you convert that HEX value into a different model called HSL.
HSL splits a color into three axes: hue (H), saturation (S), and lightness (L). Saturation and lightness are magnitude values from 0 to 100%, but hue (H) is an angle that goes all the way around a circle, from 0 degrees to 360 degrees. Red sits near 0 degrees, green near 120 degrees, and blue near 240 degrees, and past 360 degrees it wraps back around to 0.
So saying "a color at such-and-such a degree on the color wheel" means exactly the same thing as saying "a color whose H value is such-and-such after converting to HSL."
Why complementary colors are exactly 180 degrees apart
A complementary color sits at the exact opposite point on this circle from the base color. One full turn around the circle is 360 degrees, so the opposite point is exactly halfway around, 180 degrees away.
The math is simple. If the base color's hue angle is H, the complementary color's hue angle is (H + 180) modulo 360. For example, if the base color's H is 40 degrees, its complement is 220 degrees; if H is 300 degrees, its complement is 120 degrees. If the result goes past 360 or turns negative, you add or subtract 360 to bring it back into the 0–360 range.
Saturation and lightness stay untouched. A complementary color is the "opposite hue," not the "opposite brightness" or "opposite saturation," so both values stay the same as the base color and only the hue angle rotates 180 degrees.
Analogous, triadic, and tetradic schemes use the same angle math
If complementary colors split the circle in half, the other color scheme rules are just different ways of dividing that same circle.
Scheme name
Hue angle offset
Number of colors
Complementary
0°, 180°
2
Analogous
-30°, 0°, 30°
3
Triadic
0°, 120°, 240°
3
Tetradic
0°, 90°, 180°, 270°
4
Analogous uses only the narrow range right next to the base color (±30 degrees here), so its hue angle difference is the smallest. Triadic uses the colors at 0, 120, and 240 degrees, which divide 360 degrees into exactly three equal parts, and tetradic uses the colors at 0, 90, 180, and 270 degrees, which divide it into four equal parts. Either way, the calculation rule is the same: leave saturation and lightness alone and rotate only the hue angle by the set interval.
A bigger angle difference means the two colors are farther apart on the circle, so the fact that complementary (180 degrees) has a much larger hue difference than analogous (30 degrees) is something you can see directly in this angle structure.
How to work out these angles by hand
To find a complementary or triadic scheme by hand from a single HEX code, you first need to convert that HEX to HSL and read off the H value (the hue angle). Most operating system color selectors and the color pickers in design tools have HSL sliders, so you can check the H value right there.
Once you have the H value, add the offset for the scheme you want (180 for complementary, 120 and 240 for triadic, 90, 180, and 270 for tetradic), then take the remainder after dividing by 360. Then combine that resulting angle with the original saturation and lightness as HSL values and convert back to HEX.
The problem is that every round trip means repeating the math: HEX→RGB→HSL, then HSL→RGB→HEX. If you want to check not one but all four schemes (complementary, analogous, triadic, and tetradic), doing that calculation by hand every time gets tedious fast.
Enter one base color HEX and the Color Harmony Tool instantly works out the HEX codes for its complementary, analogous, triadic, and tetradic schemes

How the tool handles this angle math for you
With the Color Harmony Tool, you enter a single base color as HEX (or pick one with the color picker next to it), and internally it converts that color to HSL to get the hue angle (H). Then it applies the four offsets described above (0/180, -30/0/30, 0/120/240, and 0/90/180/270) to that hue angle, calculating the complementary, analogous, triadic, and tetradic schemes all at once.
The principle is the same as doing it by hand: saturation and lightness stay exactly as they are in the base color, and only the hue angle rotates. There's no separate "Calculate" button — the moment you change the HEX input, all four sections recalculate and update on screen.
Below each color swatch in a scheme, the calculated HEX code appears as-is, and each swatch has a copy button so you can grab the value right away. To copy an entire scheme at once, use the copy-all button below each section. Which scheme to use and where is a call you make yourself after looking at the results — the tool doesn't decide which scheme is better, it just shows you the calculated results accurately.
Summary
- The "angle" on the color wheel is the H (hue) value in the HSL color model, and it goes all the way around the circle from 0 degrees to 360 degrees.
- A complementary color is defined as the color exactly 180 degrees away on this angle, at the opposite point on the circle.
- Analogous (±30 degrees), triadic (three equal parts at 120-degree intervals), and tetradic (four equal parts at 90-degree intervals) are all just different ways of dividing the same circle.
- Whatever the scheme, the rule is the same: keep saturation and lightness the same as the base color and rotate only the hue angle by the set amount.
- The Color Harmony Tool takes a single HEX value and runs all four of these angle calculations at once, showing you the results as HEX codes right away.
Enter one base color HEX and the Color Harmony Tool instantly works out the HEX codes for its complementary, analogous, triadic, and tetradic schemes
Frequently asked questions
Is a complementary color always exactly 180 degrees away?
Yes. A complementary color is defined as the color at the opposite point on the color wheel from the base color, meaning the hue angle difference is exactly 180 degrees. No matter what the saturation or lightness is, that angle relationship doesn't change.
Is the 30-degree interval for analogous colors an absolute standard?
No. The key idea is that analogous colors use a narrow angle range right next to the base color, and the Color Harmony Tool calculates this as -30, 0, and 30 degrees. The concept of neighboring hues is what matters — 30 isn't the one and only fixed absolute value.
How many colors do triadic and tetradic schemes produce?
Triadic divides 360 degrees into three equal parts at 0, 120, and 240 degrees, giving 3 colors, and tetradic divides it into four equal parts at 0, 90, 180, and 270 degrees, giving 4 colors. In both cases, the count includes the base color.
Does calculating a scheme change the saturation or lightness too?
No, it doesn't. In complementary, analogous, triadic, and tetradic schemes alike, rotation applies only to the hue angle (H), and saturation (S) and lightness (L) stay at the same values as the base color. That's how you get schemes that keep the same tone but use different hues.
This article was adapted from our Korean original. Read the Korean original