ToolGuest
US · UK · DE · AU Generate a complementary palette
Complementary mode · Loaded by default

Complementary Color PaletteFind the Opposite Colour Instantly

Complementary colours sit about 180 degrees apart on the colour wheel, which is why they make an accent impossible to ignore. Enter a base colour to see its opposite, build a five-swatch palette around the pair, and check that the contrast still works for text.

  • Under 50 ms
  • 100% client-side
  • HEX, RGB & HSL
  • Unlimited palettes

Live palette preview

Everything runs in this tab. No palette is uploaded, saved or limited.

Space to shuffle · 1–5 to lock

Need artwork for the palette? Resize an image, convert HEIC to JPG or check an aspect ratio — all local.

Base colour Generated in <1 ms · 0 uploads
Space Shuffle 1–5 Lock a swatch Ctrl+Z Undo Click any code to copy it
5 swatches · HEX, RGB and HSL

WCAG contrast checker

Test any text colour against any background. The ratio is calculated from relative luminance, exactly as WCAG defines it.

Large heading preview
Small body text preview at 14px — check this one first.
21.00:1
AA 4.5:1 AA large 3:1 AAA 7:1 AAA large 4.5:1

CSS custom properties

Five named variables, ready for a :root block. Copy the set and the palette moves into your stylesheet.


      

ToolGuest Complementary Color Palette generator pairs a base colour with its opposite, 180 degrees away on the colour wheel, then expands the pair into five balanced swatches. Every swatch shows HEX, RGB and HSL codes, the whole palette exports as CSS variables, and text-on-background contrast is checked against WCAG AA and AAA locally.

Opposites that work

A complementary colors generator for accents that need to be seen

Complementary colours are the loudest relationship on the wheel. Because the two hues share no pigment, the eye cannot average them, so a purple page with a yellow-green button reads as a deliberate choice. That is exactly what a call to action wants, and exactly why complementary palettes fail when both hues are used at full strength across large areas.

The rule is simple: keep one hue dominant and let the opposite hue work in small doses. A purple surface with an amber accent, a navy header with a coral link, a green card with a magenta tag — in each case the complementary colour is doing one job.

Complementary pairs and how much of each to use
Base hueOpposite hueHow to use the pair
Blue (around 220°)Orange (around 40°)Blue surfaces with an orange CTA. The classic accessible pairing for finance and SaaS.
Purple (around 270°)Yellow-green (around 90°)Purple brand with a lime highlight. High energy; keep the lime under 10% of the screen.
Red (around 0°)Cyan (around 180°)Red for warnings, cyan for links. Never put both behind the same body text.
Green (around 140°)Magenta (around 320°)Green success states with a magenta accent for creative brands and editorial layouts.
Contrast rule4.5:1 for body textThe pair is a colour relationship, not a readability guarantee — always check the ratio.
Colour theory

What the opposite color generator actually calculates

The opposite of a colour is its hue rotated by 180 degrees in HSL, with saturation and lightness held constant. A complementary colors generator that works in RGB instead will drift: rotating channels does not preserve perceived brightness, so the opposite of a dark blue can come back almost white. Working in HSL keeps the pair recognisably related.

Pure complements are rare in real brands. Most palettes use a tint or shade of the opposite hue — a lighter, desaturated version for backgrounds, or a darker version for text. The five swatches here include both a full-strength complement and a lighter variant, so the pair can be used at two different volumes without leaving the palette.

For a deeper explanation of how these relationships combine, compare this page with the analogous palette generator and the full colour scheme generator.

Accessibility

Using complementary colours without failing contrast

Two complementary colours can have nearly the same luminance, which is the worst case for readability: they look different in hue and identical in brightness, so text on one disappears into the other. Yellow and blue-violet are the usual offenders. The contrast panel reports the real ratio, and if the pair fails, shift the lightness of one swatch rather than changing its hue.

The WCAG thresholds are 4.5:1 for normal text and 3:1 for large text at AA, and 7:1 and 4.5:1 at AAA. An accent colour only needs 3:1 when it is used as a large graphic or a button label at 18pt, but the moment the same colour carries 14px body copy the requirement is 4.5:1.

FAQ

Complementary colour questions

What is a complementary color palette?

It is a palette built around two hues that sit about 180 degrees apart on the colour wheel. The pair produces the strongest hue contrast available, so it is normally used with one dominant colour and the opposite reserved for accents, buttons and highlights.

How do I find the opposite of a colour?

Rotate its hue by 180 degrees while keeping saturation and lightness unchanged. This page does that automatically: enter the base colour and the complementary mode returns its opposite plus lighter and darker variants of the pair, which is usually more usable than the pure opposite on its own.

Are complementary colors good for website design?

They are excellent for accents and poor for large text areas. One dominant hue plus a small amount of its opposite gives clear calls to action. Two complementary colours at full strength across a whole page vibrate visually and make reading tiring.

Why can complementary colors look harsh together?

Both hues are fully saturated and can share a similar luminance, so the edge between them appears to shimmer. Desaturating one colour, or separating the pair with a neutral border or white space, removes most of the effect without losing the contrast.

Can complementary colours pass WCAG contrast?

Yes, but hue alone never guarantees it. Contrast depends on relative luminance, so a dark blue and a mid orange can pass 4.5:1 while yellow and blue-violet fail. Check the actual ratio and adjust lightness until the pair reaches the threshold you need.