Complementary color finder

The complementary color of red is cyan on a screen (RGB) color wheel and green on a painter's (RYB) wheel. Type or pick any color to find its complementary colors, the opposite color on the color wheel, on three wheels at once, with split complementary, triadic and tetradic sets.

Color wheel

Interactive color wheel

Click or tap the wheel to move the base color's hue there. With the wheel focused, the arrow keys turn it by 1° (hold Shift for 15°), and Home goes to 0°.

Harmonies on the HSL wheel

Contrast of the complementary pair

How to use the complementary color finder

  1. Type a color into Color in any common format, such as #ff0000, rgb(255, 0, 0), hsl(0, 100%, 50%), oklch(62.8% 0.2577 29.23) or a CSS name like teal, or click the swatch to use your system color picker.
  2. Compare the three cards: the complementary color on the HSL (screen), RYB (painter's) and OKLCH (perceptual) wheels, each with its HEX value and a Copy button.
  3. Choose HSL, RYB or OKLCH under Color wheel. The interactive wheel, the harmonies and the contrast check switch to that wheel.
  4. Click or tap the wheel, or focus it and use the arrow keys, to turn the base color's hue and watch the complement follow on the opposite side.
  5. Copy the split complementary, triadic, tetradic or rectangle colors, or use Open in palette generator to keep working on them.
  6. Check the contrast ratio of the pair before using one color as text on the other. The page address keeps your color and wheel, so you can share the link.

What complementary colors are

In color theory, complementary colors sit on opposite sides of a color wheel, 180° apart. There is more than one complementary color wheel, though, and each answer is a convention of its wheel. Ask for the opposite color of red and a screen designer says cyan while a painter says green. This tool shows the answers from three wheels side by side, so you can pick the one that fits your work.

WheelComplement of redComplement of blueBased on
HSL (screen)#00FFFF cyan#FFFF00 yellowRed, green and blue light, as in CSS
RYB (painter's)#00FF4D green#FFA500 orangeRed, yellow and blue paint primaries
OKLCH (perceptual)#009CB2 cyan#734F00 dark goldHow the eye judges lightness and hue

How each complement is calculated

The six saturated corners set where each hue sits on the RYB wheel:

Cube cornerRYB hueHSL hue of its RGB color
Red0°0°
Orange60°30°
Yellow120°60°
Green180°138.18°
Blue240°211.17°
Purple300°300°

Between corners the tool follows the edge of the cube. The resulting mapping is continuous and always increasing, so it can be inverted precisely. RYB is a traditional art-education model, not a physical or measurement standard: real paints mix differently depending on their pigments, and other RYB wheels place the hues slightly differently.

Worked example: red

Take #FF0000, which is hsl(0, 100%, 50%) and oklch(62.8% 0.2577 29.23).

Complementary colors of common colors

HSL, RYB and OKLCH complements of 12 common CSS named colors, worked out with the same code as the tool above. Click a name for that color's codes and shades.

ColorHEXHSL complementRYB complementOKLCH complement
Red#FF0000#00FFFF (aqua / cyan)#00FF4D#009CB2
Orange#FFA500#005AFF#0001FF#78C1FF
Yellow#FFFF00#0000FF (blue)#FF00FF (fuchsia / magenta)#F3F1FF
Green#008000#800080 (purple)#80000C#963BA3
Blue#0000FF#FFFF00 (yellow)#FFA500 (orange)#734F00
Purple#800080#008000 (green)#808000 (olive)#00620F
Pink#FFC0CB#C0FFF4#D0FFC0#9BE4DC
Teal#008080#800000 (maroon)#802B00#9E585E
Navy#000080#808000 (olive)#805300#372200
Gold#FFD700#0028FF#AB00FF#CBD6FF
Brown#A52A2A#2AA5A5#2AA54F#006D79
Gray#808080None: gray is neutral, so it has no hue to turn around the wheel.

The columns differ because each wheel spaces the hues differently and keeps a different kind of lightness. On the RYB wheel blue goes with orange and yellow with purple, as in a classroom color wheel; at full strength that purple is magenta #FF00FF. Every result keeps the input's saturation and lightness, so dark CSS purple gets a dark yellow (olive) partner. The OKLCH column keeps the eye's sense of lightness instead, which is why light colors such as pink and gold get pale partners and dark navy gets a very dark one.

Split complementary colors, triadic and tetradic

The harmonies use the wheel you choose. Split complementary colors take the two hues 30° either side of the complement (base + 150° and + 210°); traditionally they give contrast with less tension than a direct pair. On the HSL wheel, red's split complements are #00FF80 and #0080FF.

Triadic colors are three hues 120° apart. Tetradic colors (a square) add 90°, 180° and 270°, which is two complementary pairs. The rectangle adds 60°, 180° and 240°, a neighbor of the base plus both complements; some sources call this a double complementary or tetradic scheme too, so naming varies. For analogous colors, neighbors a few degrees apart, use the palette generator in analogous mode.

Complements as text and background

Opposite hues are not the same as readable contrast. WCAG contrast depends on lightness, and complements often have similar lightness. Red and its HSL complement reach 3.19:1, enough only for large text at level AA, and its RYB complement reaches 2.93:1. OKLCH complements keep the lightness on purpose, so they almost always fail as text pairs: red and #009CB2 are 1.22:1. Some HSL pairs do pass, such as blue and yellow at 8:1, because HSL lightness does not match how light a color looks. The tool shows the ratio for each pair, and the contrast checker can suggest a lighter or darker version.

Common mistakes

Key terms

Complementary colors
Two hues on opposite sides of the color wheel, 180° apart. They are traditionally seen as the strongest hue contrast, and are often used for an accent against a main color. Which hue counts as opposite depends on the color wheel used.
RYB color wheel
The painter's color wheel, with red, yellow and blue as primaries and orange, green and purple between them. It is a traditional art-education model, not a physical standard, so its complements (red and green, blue and orange) differ from those of the RGB screen wheel.
Split complementary
A color scheme of a base hue and the two hues 30° either side of its complement, 150° and 210° from the base on the color wheel.
Tetradic color scheme
Four hues spaced evenly at 90° on the color wheel, forming a square of two complementary pairs. A rectangle variant uses two pairs 60° apart instead.
Trilinear interpolation
Estimating a value inside a cube from the values at its eight corners by blending along each of the three axes in turn. The RYB cube of Gossett and Chen uses it to turn any mix of red, yellow and blue into an RGB color.
HSL
A color model of hue (an angle from 0 to 360 degrees on the color wheel), saturation and lightness, both as percentages. Lightness 0% is black, 100% is white and 50% is the most vivid color, which makes HSL handy for creating tints and shades in CSS.
OKLCH
A CSS color format of lightness, chroma and hue, built on the OKLab color space published by Björn Ottosson in 2020. Equal steps in its lightness look roughly equal to the eye, which plain HSL does not manage. Tailwind CSS v4 defines its default palette in OKLCH.
Gamut mapping
Turning a color that is outside a gamut into the closest color inside it. CSS Color 4's gamut mapping algorithm keeps lightness and hue and lowering chroma until the result is within a just-noticeable difference of a color the screen can show; the final clip can shift the hue slightly.
Contrast ratio
A WCAG measure of how different two colors' brightness is, from 1:1 (identical) to 21:1 (black on white). It is calculated from the relative luminance of each color and used to judge whether text is readable against its background.

Frequently asked questions

What is the opposite color of green?
For pure green #00FF00, the opposite on a screen (HSL) color wheel is magenta (#FF00FF). On a painter's RYB wheel it is red (#FF0017).
What is the complementary color of yellow?
On a screen wheel, yellow #FFFF00 pairs with blue (#0000FF). On a painter's RYB wheel its complement is purple, which at full strength comes out as magenta (#FF00FF).
What is the complementary color of purple?
For the CSS color purple #800080, the screen (HSL) complement is dark green (#008000) and the painter's (RYB) complement is olive (#808000). Both keep purple's low lightness, so the RYB answer is a darkened yellow.
What is the complementary color of blue?
Blue #0000FF pairs with yellow (#FFFF00) on a screen wheel and with orange on a painter's RYB wheel, where it rounds to exactly the CSS color orange, #FFA500.
What is the opposite color of red?
Red #FF0000 is opposite cyan (#00FFFF) on a screen (RGB or HSL) color wheel and green (#00FF4D) on a painter's RYB wheel. Art classes teach red and green because they use the RYB wheel.
What is the complementary color of orange?
For the CSS color orange #FFA500, the screen (HSL) complement is azure blue (#005AFF) and the painter's (RYB) complement is blue (#0001FF).
What happens if you mix complementary colors?
As paint, complementary colors usually mix toward a brown or gray, which painters use to tone a color down; try it in the color mixer. On a screen, an HSL complementary pair averages to a neutral gray, because each RGB channel of the pair adds up to the same total.
How is the RYB color wheel built here?
This tool builds its RYB wheel from the paint-mixing cube of Gossett and Chen, placing red, yellow and blue 120° apart with orange, green and purple between them. A hue is moved onto that wheel, turned 180° and moved back, keeping the HSL saturation and lightness, so other RYB tools may differ slightly.

Sources: Gossett and Chen, Paint Inspired Color Compositing (University of Minnesota; source of the RYB cube values), Gossett and Chen, Paint Inspired Color Mixing and Compositing for Visualization (IEEE InfoVis 2004), CSS Color 4 gamut mapping, CSS Color 4 HSL, A perceptual color space for image processing (Björn Ottosson), WCAG 2.2 contrast ratio. Last checked 2026-11-17.