Complementary Color
Computes the complementary color (+180° hue shift).
Node id color/complementary
The Complementary Color node outputs the exact opposite color on the color wheel by shifting the input hue by 180° (+0.5 in HSL fraction). Saturation, lightness, and opacity are preserved.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| color | Color | { r: 0, g: 0, b: 0, a: 1 } |
Outputs
| Name | Type | Notes |
|---|---|---|
| complement | Color |
Behaviour
- Hue shift. Adds 180° (+0.5 fraction) to the hue of
color. The resulting hue wraps cyclicly around the color wheel. - Preserved channels. Saturation
s, lightnessl, and opacityaremain unchanged. - Default input. Unconnected
colordefaults to opaque black.
Related nodes
- Split-Complementary Colors: outputs two colors flanking the complement.
- Triadic Colors: outputs two colors forming a 120° triadic harmony.
- Color From HSL: constructs a color from HSL fractions.