AfoliOpen Afoli →

Moss & Dark Slate Blue

A retro palette of 3 colors from the Afoli gallery: #4B366B, #7F9946, #D8E6A1.

Open in the Afoli palette generator →

#4B366B · Dark Slate Blue#7F9946 · Olive Drab#D8E6A1 · Pale Goldenrod

Colors in this palette

HEXRGBHSLCMYKNearest named color
#4B366Brgb(75, 54, 107)hsl(264, 33%, 32%)30, 50, 0, 58≈ Dark Slate Blue
#7F9946rgb(127, 153, 70)hsl(79, 37%, 44%)17, 0, 54, 40≈ Olive Drab
#D8E6A1rgb(216, 230, 161)hsl(72, 58%, 77%)6, 0, 30, 10≈ Pale Goldenrod

Preview in a UI

A heading in the primary color

Body text on the background, as a page or an app would show it.

Text on a card · #7F9946
Button

Roles: background #4B366B, surface #4B366B, text #D8E6A1, primary #7F9946, accent #7F9946 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background7.73 : 1-77Pass
Text on a card7.73 : 1-77Pass
Button label3.21 : 133Fail
Heading on background3.21 : 1-32Pass (WCAG)
Link on a card3.21 : 1-32Fail
Accent badge on a card3.21 : 1-32Pass (WCAG)
Primary control on background3.21 : 1-32Pass (WCAG)

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

CSS variables

:root {
  --dark-slate-blue: #4B366B;
  --olive-drab: #7F9946;
  --pale-goldenrod: #D8E6A1;
}

How this palette was made

Afoli generated it from a fixed seed and kept it because it passes the gallery rules: every color is clearly distinct, one pair reaches 4.5 : 1 for text and the colors span a wide light-to-dark range. It is free to use (CC0).

Frequently asked questions

How do I use the Moss & Dark Slate Blue palette in CSS?

Copy the CSS variables on this page, or open the palette in the Afoli generator to export Tailwind, JSON, SVG, PNG or Adobe ASE.

Which colors of Moss & Dark Slate Blue can I use for text?

#4B366B text on #D8E6A1 reaches 7.73 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026