Complementary Color Calculator
Pick a base color and get its complement, its two triadic partners and its two analogous neighbours as ready-to-copy hex codes. Each color is found by converting your hex to HSL and rotating the hue around the color wheel while keeping saturation and lightness unchanged, so the palette stays balanced. The complement is 180 degrees away, the triadic colors are at 120 and 240 degrees, and the analogous colors sit 30 degrees to each side. All of it is computed in your browser.
How to find a complementary color
- Pick a base color with the color swatch, or type a hex code such as #ff0000 in the text box.
- Under Complementary, compare your base color with its complement (the hue rotated 180 degrees).
- Under Triadic, see the two colors labelled +120 and +240, evenly spaced around the wheel.
- Under Analogous, see the neighbours labelled -30 and +30, one step to each side of your base.
- Click Copy beneath any swatch to copy that hex value into your CSS or design tool.
Examples
Complement of red
#ff0000
#00ffff (cyan)
Triadic of red
#ff0000
#00ff00 and #0000ff
Analogous of red
#ff0000
#ff0080 and #ff8000
Frequently asked questions
What is a complementary color?
A complementary color sits directly opposite your color on the wheel, 180 degrees away. Paired together the two create strong contrast, which is why they are often used for accents and calls to action.
What are triadic colors?
Triadic colors are three hues spaced evenly around the wheel, 120 degrees apart. Starting from your base the tool returns the other two, labelled +120 and +240, which together make a vivid, balanced trio.
What are analogous colors?
Analogous colors are the immediate neighbours of your color, here 30 degrees to each side and labelled -30 and +30. They sit comfortably together and suit harmonious, low-contrast palettes.
How exactly are the colors calculated?
Your hex is converted to HSL, the hue is rotated by the required number of degrees, and the result is converted back to hex. Saturation and lightness are left unchanged, so only the hue moves.
What hex formats does the box accept?
Both 3-digit and 6-digit hex, with or without a leading #. So #f00, f00, #ff0000 and ff0000 all describe the same red. Values are normalized to 6-digit lowercase hex in the output.
Why is the complement of red cyan and not green?
This tool uses the RGB and HSL color wheel that screens are built on, where red sits opposite cyan. The green you may expect comes from the traditional RYB paint wheel used by artists, which arranges hues differently.
What happens with black, white or grey?
Greys have no measurable hue, so rotating the hue leaves them unchanged. The complement, triadic and analogous colors of a neutral all come back as the same neutral.
What if I type an invalid hex code?
The swatches are replaced by a short message asking for a valid hex color like #ff0000. As soon as the text is a valid 3 or 6 digit hex, the palette reappears.
Is my color sent to a server?
No. The whole palette is calculated in your browser, so your color values never leave your device.
Learn more
- Color harmony and the color wheel
How the HSL wheel arranges hue, what complementary, triadic and analogous schemes are, and why screen colors differ from paint.
Related tools
Color Shades Generator
Generate tints and shades from one hex color online. Pick a base color and get lighter and darker steps toward white and black, ready to copy.
Color Mixer
Mix two hex colors online and get the blend. Set the mix ratio with a slider to find the perfect in-between color, then copy the hex result.
Air Fryer Converter
Convert any conventional oven recipe to air fryer settings. Lower the temperature by 25 F and cut the cook time by about 20 percent automatically.
Baker's Percentage Calculator
Turn a bread formula into grams with baker's percentages. Flour is 100 percent, enter water, salt and yeast percents to get weights and hydration.
Baking Pan Converter
Swap one baking pan for another and scale the batter to fit. Compares pan areas for round, square and rectangular pans and gives a batter scale factor.
Binary to Decimal
Convert binary to decimal online. Paste any binary number, with or without spaces, and get the exact base-10 value instantly. Runs in your browser.