Swatchproof

Developer Docs colour palette

Deep plum keeps paragraphs readable on cream. Teal highlights actions. The palette uses Warm cream, Deep plum, Teal and Paper white.

Preview on a website Try on walls

Colour codes

ColourHEXRGBOKLCHText on it
Warm cream #F3EADFrgb(243 234 223)oklch(94.1% 0.018 73.1) Black (17.65:1)
Deep plum #492E46rgb(73 46 70)oklch(34.3% 0.055 330.6) White (11.91:1)
Teal #35615Ergb(53 97 94)oklch(46.0% 0.049 189.9) White (6.95:1)
Paper white #FFFFFFrgb(255 255 255)oklch(100.0% 0.000 0) Black (21.00:1)

Contrast between the colours

4 of 6 colour pairs pass WCAG AA for body text. The strongest is Deep plum with Paper white at 11.91:1.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
Deep plum / Paper white11.91:1PassPassPass
Warm cream / Deep plum10.01:1PassPassPass
Teal / Paper white6.95:1PassFailPass
Warm cream / Teal5.84:1PassFailPass
Deep plum / Teal1.72:1FailFailFail
Warm cream / Paper white1.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.

Background #FFFFFF Paper white
Text #492E46 Deep plum
Button #F3EADF Warm cream
Button text #35615E Teal
:root {
  --background: #FFFFFF;
  --text: #492E46;
  --accent: #F3EADF;
  --on-accent: #35615E;
}

Preview on a dashboard