Swatchproof

Wada combination 96: Yellow Ocher and Olive

Combination 96 in Sanzo Wada's A Dictionary of Color Combinations uses 2 colours: Yellow Ocher and Olive.

Preview on a website Try on walls

Colour codes

ColourHEXRGBOKLCHText on it
Yellow Ocher #E2B540rgb(226 181 64)oklch(79.3% 0.140 87.1) Black (10.92:1)
Olive #837E31rgb(131 126 49)oklch(58.2% 0.099 105.6) Black (4.99:1)

Contrast between the colours

No pair reaches the 4.5:1 that WCAG AA needs for body text. The strongest is Yellow Ocher with Olive at 2.19:1. Use black or white for paragraphs.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
Yellow Ocher / Olive2.19:1FailFailFail

Results use the unrounded WCAG 2.2 ratio, so a pair shown as 4.50:1 can still fail. W3C contrast guidance

Use it on a website

Swatchproof puts the lightest workable colour behind the text and changes as few colours as possible to reach 4.5:1. With two colours, buttons use the studio defaults.

Background #E2B540 Yellow Ocher
Text #504C00 adjusted from Olive #837E31 to reach 4.5:1
:root {
  --background: #E2B540;
  --text: #504C00;
}

Preview on a dashboard