What are complementary colors?
Complementary colors sit opposite each other on a color wheel. Put side by side, they make each other look stronger, which is why they are used for emphasis.
What is the opposite of red on the color wheel?
It depends on the wheel. The painter’s wheel of red, yellow and blue puts green opposite red; the screen wheel of red, green and blue puts cyan opposite red. Neither is wrong: they describe different ways of making color.
What is the opposite of yellow?
On the painter’s wheel of red, yellow and blue the opposite of yellow is purple, and on the screen wheel of red, green and blue it is blue. On this site’s OKLCH wheel yellow #FFFF00 turns to #F4F3FF, a blue so pale it is nearly white, because the complement keeps the high lightness of yellow.
This site rotates hue by 180 degrees in OKLCH, a space built so that equal changes look equal. That keeps the complement at the same lightness, so the pair contrasts in hue without one looking washed out.
Split complementary colors use the two neighbours of the complement instead of the complement itself; the color wheel and the palette generator offer both as harmonies.
Try it on the color wheel tool, or open any color page, where the complementary color and four other color combinations are already calculated.