A shared five-color palette

Grey, midnight blue and moccasin: a five-color palette

A five-color palette made in Recolor (recolor.page): #a3729a, #21141d, #ffe9bb, #b6cfc0 and #3d5e4c. White text reaches the WCAG AA ratio of 4.5:1 on #21141d and #3d5e4c, black text on #a3729a, #ffe9bb and #b6cfc0.

Shared

#a3729aGrey
#21141dMidnight Blue
#ffe9bbMoccasin
#b6cfc0Silver
#3d5e4cDark Slate Grey
Computed with Recolor's own color code (culori, the WCAG 2 contrast ratio), November 24, 2026
HexNearest CSS nameOKLCHBlack text, AAWhite text, AA
#a3729aGrey (grey)oklch(61.5% 0.083 333.2)5.43:1 passes3.87:1 fails
#21141dMidnight Blue (midnightblue)oklch(21.2% 0.027 338.4)1.18:1 fails17.76:1 passes
#ffe9bbMoccasin (moccasin)oklch(94.1% 0.064 85.4)17.63:1 passes1.19:1 fails
#b6cfc0Silver (silver)oklch(83.2% 0.034 159.3)12.68:1 passes1.66:1 fails
#3d5e4cDark Slate Grey (darkslategrey)oklch(45.1% 0.049 159.8)2.90:1 fails7.23:1 passes

Using the palette

In Recolor the lightness and the order of the colors are meaning. On a light page #ffe9bb, the lightest of the five, takes the background and #21141d, the darkest, the text, and the page's other greys keep their place between the two; on a dark page the two swap. The other three take the page's colors in their order: the first of them its heaviest brand color, the next the one after. Reorder the swatches and the page reorders with them; mapping explains it, and the Tint choice that keeps a page's greys as they were. To keep text readable, the table above says whether black or white text reaches the WCAG AA ratio of 4.5:1 on each color.

The code below is what Recolor's own Export panel writes for this palette. The Tailwind block is a Tailwind v4 @theme block, and the Coolors link opens the same colors there. To see the palette on your own site first, follow previewing a palette on a real website.

The palette as code

CSS variables

CSS
:root {
  --color-1: #a3729a;
  --color-2: #21141d;
  --color-3: #ffe9bb;
  --color-4: #b6cfc0;
  --color-5: #3d5e4c;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #a3729a;
  --color-2: #21141d;
  --color-3: #ffe9bb;
  --color-4: #b6cfc0;
  --color-5: #3d5e4c;
  --color-primary: #a3729a;
  --color-secondary: #21141d;
  --color-accent: #ffe9bb;
}

SCSS variables

SCSS
$color-1: #a3729a;
$color-2: #21141d;
$color-3: #ffe9bb;
$color-4: #b6cfc0;
$color-5: #3d5e4c;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;

JSON

JSON
{
  "colors": [
    "#a3729a",
    "#21141d",
    "#ffe9bb",
    "#b6cfc0",
    "#3d5e4c"
  ]
}

Hex list

Text
#a3729a
#21141d
#ffe9bb
#b6cfc0
#3d5e4c

Coolors link

URL
https://coolors.co/a3729a-21141d-ffe9bb-b6cfc0-3d5e4c