AfoliOpen Afoli →

Grape & Lavender

A calm palette of 6 colors from the Afoli gallery: #3F1543, #642C52, #72687B, #9898BD, #C2C4DA, #F6DCF6.

Open in the Afoli palette generator →

#3F1543 · Midnight Blue#642C52 · Purple#72687B · Dim Gray#9898BD · Dark Gray#C2C4DA · Light Steel Blue#F6DCF6 · Lavender

Colors in this palette

HEXRGBHSLCMYKNearest named color
#3F1543rgb(63, 21, 67)hsl(295, 52%, 17%)6, 69, 0, 74≈ Midnight Blue
#642C52rgb(100, 44, 82)hsl(319, 39%, 28%)0, 56, 18, 61≈ Purple
#72687Brgb(114, 104, 123)hsl(272, 8%, 45%)7, 15, 0, 52≈ Dim Gray
#9898BDrgb(152, 152, 189)hsl(240, 22%, 67%)20, 20, 0, 26≈ Dark Gray
#C2C4DArgb(194, 196, 218)hsl(235, 24%, 81%)11, 10, 0, 15≈ Light Steel Blue
#F6DCF6rgb(246, 220, 246)hsl(300, 59%, 91%)0, 11, 0, 4≈ Lavender

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 · #642C52
Button

Roles: background #F6DCF6, surface #C2C4DA, text #3F1543, primary #642C52, accent #9898BD (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background11.78 : 185Pass
Text on a card8.72 : 168Pass (WCAG)
Button label8.15 : 1-80Pass
Heading on background8.15 : 178Pass
Link on a card6.03 : 160Pass (WCAG)
Accent badge on a card1.61 : 120Fail
Primary control on background8.15 : 178Pass

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 {
  --midnight-blue: #3F1543;
  --purple: #642C52;
  --dim-gray: #72687B;
  --dark-gray: #9898BD;
  --light-steel-blue: #C2C4DA;
  --lavender: #F6DCF6;
}

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 Grape & Lavender 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 Grape & Lavender can I use for text?

#3F1543 text on #F6DCF6 reaches 11.78 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026