Complementary Color
Find the complementary (opposite) color of any color — 100% in your browser.
Input
Output
What is a complementary color?
A complementary color is the color directly opposite another color on the color wheel. In the RGB additive model that screens use, the complement is produced by inverting each channel: if your color is (R, G, B), its complement is (255−R, 255−G, 255−B). For example, the complement of sky blue #0EA5E9 (14, 165, 233) is a warm orange-red #F51A16 (241, 90, 22).
Because complementary pairs sit on opposite sides of the wheel, they create the strongest possible visual contrast when placed next to each other. This makes them a cornerstone of color theory in art, design and accessibility — they draw the eye, make text pop, and can form the basis of an entire brand palette.
How the complementary color is calculated
In the RGB model, the complementary color is found by subtracting each channel from 255. The math is simply:
R' = 255 − R
G' = 255 − G
B' = 255 − B
For example, sky blue #0EA5E9 has R=14, G=165, B=233. Its complement is R'=241, G'=90, B'=22, which is #F51A16. This is the additive complement — the color that, when added to the original in equal amounts of light, produces a mid gray. This tool performs the inversion live as you pick a color.
When to use complementary colors
Complementary colors are useful whenever you need strong contrast or a balanced two-color scheme:
- Call-to-action buttons. A complementary accent makes a button stand out against the page background.
- Text contrast. Pairing a color with its complement is one of the easiest ways to reach WCAG contrast targets.
- Brand palettes. Many logos use two complementary colors for instant recognizability.
- Art and illustration. Complementary pairs create vibrant shadows and highlights.
- Data visualization. Opposing colors help distinguish two data series at a glance.
Use complementary colors with care — at full saturation and equal area they can vibrate visually. The usual rule is to let one color dominate and use the complement as an accent.
Complementary vs analogous and triadic
Complementary is one of several classic color harmonies. A complementary scheme uses two colors directly opposite on the wheel — maximum contrast, minimal palette. An analogous scheme uses three colors next to each other — low contrast, calm and cohesive. A triadic scheme uses three colors evenly spaced 120° apart — balanced and vibrant. A tetradic (rectangle) scheme uses two complementary pairs for a rich four-color palette.
Complementary is the simplest and most striking of these harmonies. It works best when you need a clear focal point or a two-tone brand identity. When you need more nuance, reach for analogous or triadic instead.
How to find a complementary color
Finding the complementary color with this tool takes a second and runs entirely in your browser. No upload, no sign-up, no install. Follow these steps:
- Pick a color. Use the color picker, or type red, green and blue values (0–255) into the RGB inputs.
- See the result. The complementary HEX code and RGB values update live, with side-by-side swatches for comparison.
- Copy the HEX. Click "Copy HEX" to copy the complementary color, then paste it into your CSS or design tool.
Every step runs locally in JavaScript, so your color choice never leaves your browser. This makes the tool completely private and instant.
Is this complementary color calculator free?
Yes, completely free with no sign-up, no watermark and no limits other than your device's memory.
What is the formula for a complementary color?
In RGB, the complement is (255−R, 255−G, 255−B). Each channel is simply subtracted from 255 to invert the color.
Can I enter RGB values instead of picking?
Yes. Type red, green and blue values (0–255) into the R, G, B inputs and the complementary color updates instantly.
Is my input uploaded?
No. All processing happens locally. Your color never leaves your browser.