colorcodekit

Complementary color of Yellow

The complement of Yellow (#FFFF00) is #FF00FF on the artist wheel and #0000FF on the digital RGB wheel. See contrast, color-blind checks and CSS.

Base#FFFF00
SchemeComplementary
WheelsArtist, digital, OKLCH

The colors (click to copy)

The complement of Yellow on three wheels

A complementary color sits 180° across the wheel. Yellow is a warm, light color: its lightness is 97% in OKLCH, its chroma is 0.211 and its hue sits at 110°, in the yellow family. Yellow is the CSS color yellow exactly.

WheelComplementNearest CSS namevs Yellow
Artist wheel (RYB)#FF00FFfuchsia2.92:1
Digital wheel (RGB)#0000FFblue8.00:1
Perceptual wheel (OKLCH)#F4F3FFghostwhite1.02:1

On this color the wheels disagree sharply (ΔE 32.4): the artist wheel gives #FF00FF and the digital wheel gives #0000FF. Decide by medium first. Painters and printers expect the artist answer, while screen designers who write HSL values get the digital one.

The perceptual wheel keeps lightness steady and turns only the hue. A vivid blue at this lightness does not fit inside a screen's colors, so its chroma drops from 0.211 to 0.016, and the OKLCH complement comes out softer than Yellow itself.

On the artist wheel the opposite of the yellow family is magenta, and the result is neither clearly warm nor cool. The partner is mid-tone (lightness 70%), so the pair differs by 27% in lightness.

Does Yellow contrast with its complement?

WheelRatioWCAG 2.2Lightness gapText on the partner
Artist wheel (RYB)2.92:1fails27%Black 5.9:1
Digital wheel (RGB)8.00:1AAA52%White 8.6:1
Perceptual wheel (OKLCH)1.02:1fails0%Black 16.9:1

At 2.92:1 the artist complement is too weak for text on Yellow. Keep the pair for large shapes, and put text in black or white on top of each.

The nearest text-safe version of the complement is #C31FC2, which reaches 4.55:1 on Yellow. It keeps the hue and chroma and shifts only the lightness (ΔE 13.1 from the original).

Is the complement of Yellow safe for color-blind viewers?

TypeAs seenClosest pairΔE2000Result
Protanopia (no red cones) Yellow and its complement76.1clearly different
Deuteranopia (no green cones) Yellow and its complement72.4clearly different
Tritanopia (no blue cones) Yellow and its complement41.8clearly different

Even the weakest case, tritanopia, keeps the closest pair at ΔE 41.8. That is a clear difference, so this pairing holds up for most color-vision types.

Using Yellow and its complement in a layout

Yellow is light enough to be the 60% background. Give the complement (#FF00FF) to buttons and headings, and add a dark neutral for text.

surface #FFFF00, text #111412, accent #FF00FF

:root {
  --surface: #ffff00;
  --text: #111412;
  --accent: #ff00ff;
}

Tailwind-style scale for the complement

Here is the artist complement built into a 50 to 950 scale, with the best text color on every step. Make your own from any hex with the Tailwind color generator.

#FF00FF (fuchsia)

50100200300400500600700800900950
#FFF2FE#FFE1FD#FFC1FB#FF91FB#FF00FF#D600D6#AF00AF#8D008D#710071#5A005A#390739

A softer option: split-complementary

If the straight complement feels harsh, use the two colors beside it instead. For Yellow on the artist wheel those are #6600FF (6.50:1) and #FF0055 (3.63:1). Together they keep the contrast but add variety.

CSS to copy

:root {
  --yellow: #ffff00;
  --yellow-complement: #ff00ff;
  --yellow-complement-rgb: #0000ff;
  --yellow-complement-oklch: #f4f3ff;
}

The story of Yellow

Yellow descends from Old English geolu and geolwe, from Proto-Germanic gelwaz, and shares an Indo-European root with gold and yell. The oldest known English use is in the Epinal Glossary, dated to about 700. Source: Wikipedia.

Orpiment, a toxic arsenic sulfide pigment also called King's Yellow, turned up in a paintbox found in Tutankhamun's tomb. Source: Wikipedia.

School bus yellow was set in April 1939 at a conference organized by Frank Cyr of Columbia University, chosen partly because black lettering was most legible on it in dim light. Source: Wikipedia.

Yellow paired with its opposite in practice

In a letter to his brother Theo, Vincent van Gogh wrote about seeking oppositions of yellow with purple, among other complementary pairs such as blue with orange. Source: Wikipedia.

Frequently asked questions

What is the complementary color of Yellow?

On the artist wheel it is #FF00FF (fuchsia). On the digital RGB wheel it is #0000FF (blue), and in OKLCH it is #F4F3FF (ghostwhite). The first is the traditional answer, and the second is what you get by rotating the hue in HSL.

Can I use Yellow and its complement for text?

The artist pair reaches 2.92:1, so not directly. A text-safe partner is #C31FC2 at 4.55:1.

Should I use the artist or digital complement of Yellow?

On this color the wheels disagree sharply (ΔE 32.4): the artist wheel gives #FF00FF and the digital wheel gives #0000FF. Decide by medium first. Painters and printers expect the artist answer, while screen designers who write HSL values get the digital one.

What is a softer alternative to the complement of Yellow?

Try the split-complementary pair #6600FF and #FF0055, which sit 30° either side of the complement on the artist wheel.

Is the complement of Yellow safe for color blindness?

Even the weakest case, tritanopia, keeps the closest pair at ΔE 41.8. That is a clear difference, so this pairing holds up for most color-vision types.

Content updated