Swatchproof

Wada combination 62: Yellow and Black

Combination 62 in Sanzo Wada's A Dictionary of Color Combinations uses 2 colours: Yellow and Black.

Preview on a website Try on walls

Colour codes

ColourHEXRGBOKLCHText on it
Yellow #FFF200rgb(255 242 0)oklch(94.1% 0.200 105.7) Black (17.95:1)
Black #111314rgb(17 19 20)oklch(18.5% 0.004 229.0) White (18.63:1)

Contrast between the colours

1 of 1 colour pair passes WCAG AA for body text. The strongest is Yellow with Black at 15.93:1.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
Yellow / Black15.93:1PassPassPass

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 #FFF200 Yellow
Text #111314 Black
:root {
  --background: #FFF200;
  --text: #111314;
}

Preview on a dashboard