RGB inverse
Each RGB channel subtracted from 255.
Enter a HEX code, type RGB values or pick a shade. The opposite color finder gives you an RGB inverse for a negative and a complementary hue for your palette.
Each RGB channel subtracted from 255.
A 180° hue shift with the same saturation and lightness.
Paste a three- or six-digit HEX code in Original color, with or without
the #. Select a HEX or RGB value under either swatch to copy it.
Try the default blue, #336699. Choose RGB inverse to get the
tan you’d see in a photo negative (#CC9966). Choose Complementary hue for the brown directly across from that blue on the HSL
color wheel (#996633).
Each pair of HEX digits stores one RGB channel. Subtract each pair from FF (255 in decimal), keeping red, green and blue in the same order. For the shorthand #369, first double each digit to get #336699. The pairs 33, 66 and 99 become CC, 99 and 66, giving #CC9966.
For an eight-digit CSS color such as #33669980, enter the first six digits.
The final pair controls opacity. Append the original 80 to the copied result
to get #CC996680 with the same transparency. CSS HEX notation
For rgb(222, 145, 97), enter 222 in R, 145 in G and 97 in B. Subtracting each
from 255 gives 33, 110 and 158. That turns a peach shade, #DE9161, into a
deep blue, #216E9E. Both output formats describe the same color, so you can
paste whichever one your editor accepts.
If you only know what the color looks like, tap the swatch beside Original color. Use the hue slider to choose a color family. In the square, move right for a more saturated shade or down for a darker one. Select Apply color to see both opposites.
Open the image color replacer and tap the area you want to sample. For a logo, pick the middle of a solid area. A softened edge may contain a blend of the logo and its background. Copy the HEX value from Color to replace and paste it into the opposite color finder. For a negative of the entire photo, use the image color inverter.
Read each pair in either direction. For example, blue inverts to yellow, and inverting that yellow brings back blue. For a shade between those listed, enter its exact HEX value in the opposite color finder.
| Original color | RGB inverse |
|---|---|
Red#FF0000 | Cyan#00FFFF |
Blue#0000FF | Yellow#FFFF00 |
Lime#00FF00 | Magenta#FF00FF |
CSS green#008000 | Light magenta#FF7FFF |
Orange#FFA500 | Bright blue#005AFF |
Pink#FFC0CB | Dark teal#003F34 |
Brown#A52A2A | Light turquoise#5AD5D5 |
Gold#FFD700 | Vivid blue#0028FF |
Navy#000080 | Pale yellow#FFFF7F |
Black#000000 | White#FFFFFF |
Pure RGB green (#00FF00) inverts to magenta (#FF00FF). For the
darker CSS green (#008000), the two results split. The RGB inverse is light
magenta (#FF7FFF), and the HSL complement is purple (#800080).
If you learned that green sits opposite red, that pairing comes from the traditional
red-yellow-blue wheel used in painting. RGB and RYB color wheels
Middle gray #808080 inverts to #7F7F7F, a change of one step in
each channel. An exact match would require a channel value of 127.5, between two whole
numbers. The HSL complement stays exactly gray because saturation is zero.
To choose an accent, start with Complementary hue. It turns the hue 180°
on the HSL color wheel and keeps saturation and lightness fixed. A yellow-green #A2CD48 pairs with violet #7348CD. For a negative version of the
artwork, use RGB inverse. The same yellow-green becomes a darker violet, #5D32B7.
Try orange #FFA500 next. Both results are #005AFF. The two
methods agree when HSL lightness is exactly 50%.
For CSS pink, the color wheel gives a pale mint that can sit alongside the pink in a pastel palette. Its RGB inverse is a deep teal. Try the exact HEX code from your artwork if your pink is closer to coral or fuchsia.
#FFC0CB#C0FFF4#003F34Pick your background first. Then check how easily you can read text, links and button labels against it. Two colors can work well together in an illustration and still be hard to read as text on a button.
For example, blue #336699 and its wheel complement #996633 have
a text contrast ratio of about 1.23:1. Keep the brown for a decorative accent and try
white text on the blue for about 6:1. WCAG’s AA minimum is 4.5:1 for ordinary text and 3:1
for large text. WCAG text contrast guidance · Check the example on WebAIM
For a single text or background color, copy the RGB inverse from the opposite color finder
into your stylesheet. A blue label set to color: #336699 becomes tan with color: #CC9966. To display a whole icon as a negative, apply filter: invert(100%) to the icon itself. Applying the filter to its parent also inverts the text and images inside
that parent. CSS invert() examples