Boneyard Tools

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

  1. Pick a base color with the color swatch, or type a hex code such as #ff0000 in the text box.
  2. Under Complementary, compare your base color with its complement (the hue rotated 180 degrees).
  3. Under Triadic, see the two colors labelled +120 and +240, evenly spaced around the wheel.
  4. Under Analogous, see the neighbours labelled -30 and +30, one step to each side of your base.
  5. 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

Related tools