Swatchproof

Pantone P 138-7 C, 14-0852 TCX & P 1-9 C (alternate) colour palette

The palette uses Moss Green, Golden Yellow and Soft White.

Preview on a website Try on walls

Colour codes

ColourHEXRGBOKLCHText on it
Moss Green #4A7659rgb(74 118 89)oklch(52.5% 0.067 154.6) White (5.22:1)
Golden Yellow #F3C12Crgb(243 193 44)oklch(83.3% 0.160 88.3) Black (12.48:1)
Soft White #FBF9EDrgb(251 249 237)oklch(98.0% 0.016 99.0) Black (19.88:1)

Contrast between the colours

1 of 3 colour pairs pass WCAG AA for body text. The strongest is Moss Green with Soft White at 4.94:1.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
Moss Green / Soft White4.94:1PassFailPass
Moss Green / Golden Yellow3.10:1FailFailPass
Golden Yellow / Soft White1.59: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.

Background #FBF9ED Soft White
Text #4A7659 Moss Green
Button #F3C12C Golden Yellow
Button text #000000
:root {
  --background: #FBF9ED;
  --text: #4A7659;
  --accent: #F3C12C;
  --on-accent: #000000;
}

Preview on a dashboard