Opposite Color Calculator
Get both readings of an opposite colour at once: RGB inversion (255 − channel) and the colour-wheel complement (hue +180° keeping saturation and lightness), with the difference on greys and dark colours explained, plus HEX, rgb() and live previews.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Accepts HEX (#f00 / #ff0000 / #ff0000ff), rgb()/rgba(), percentage channels, bare numbers, plus hsl()/hsv()/cmyk().
Result
One result per line, ready to copy.
Enter a colour to see the result
What this tool does
- Pick between inversion and the wheel complement when designing hover and selected states.
- Find a contrast colour for a flat background: the wheel complement keeps lightness and usually reads better than a straight inversion.
- Get exact numbers (for example for CSS variables): both readings come with HEX and rgb() output.
Example
Input
#336699
Output
inverse: #cc9966 wheel: #996633
Inversion is 255 − channel; the wheel complement rotates the HSL hue from 210° to 30° while keeping 50% saturation and 40% lightness.
Frequently asked questions
How do inversion and the wheel complement differ?
Inversion takes 255 − channel per RGB component (equivalent to a bitwise NOT on the hex value) and flips the light-dark relationship. The wheel complement only rotates hue by 180° and keeps saturation and lightness (or HSV value), so the result has the same weight but the opposite hue. For #336699 they are #cc9966 and #996633.
Why does grey have no complement?
A grey has S = 0, so there is no hue to rotate and the wheel complement returns the input colour unchanged (#808080 → #808080). Inversion still turns it into #7f7f7f.
Is HSL or HSV the better colour wheel?
Neither is strictly better; it depends on your toolchain. HSL keeps lightness and suits web palettes, HSV keeps value and matches Photoshop-style tools. Both can be selected here, and the grey case is unaffected.
What happens to transparent colours?
Both readings only touch the three RGB channels and leave alpha untouched. The output hex is 6 digits; use the RGB to HEX converter with alpha enabled when you need 8 digits.
Keywords:opposite colorinverse colorcomplementary colorcontrast color