Swatchproof

Wada combination 42: Yellow Ocher and Violet

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

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)
Violet #4F4086rgb(79 64 134)oklch(42.3% 0.113 290.6) White (8.71:1)

Contrast between the colours

1 of 1 colour pair passes WCAG AA for body text. The strongest is Yellow Ocher with Violet at 4.53:1.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
Yellow Ocher / Violet4.53:1PassFailPass

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 #4F4086 Violet
:root {
  --background: #E2B540;
  --text: #4F4086;
}

Preview on a dashboard