AfoliOpen Afoli →

Seafoam & Deep Purple

A bold palette of 4 colors from the Afoli gallery: #300051, #505C00, #A286CF, #8FF1A8.

Open in the Afoli palette generator →

#300051 · Midnight Blue#505C00 · Dark Olive Green#A286CF · Medium Purple#8FF1A8 · Light Green

Colors in this palette

HEXRGBHSLCMYKNearest named color
#300051rgb(48, 0, 81)hsl(276, 100%, 16%)41, 100, 0, 68≈ Midnight Blue
#505C00rgb(80, 92, 0)hsl(68, 100%, 18%)13, 0, 100, 64≈ Dark Olive Green
#A286CFrgb(162, 134, 207)hsl(263, 43%, 67%)22, 35, 0, 19≈ Medium Purple
#8FF1A8rgb(143, 241, 168)hsl(135, 78%, 75%)41, 0, 30, 5≈ Light Green

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 · #A286CF
Button

Roles: background #300051, surface #300051, text #8FF1A8, primary #A286CF, accent #505C00 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background12.31 : 1-83Pass
Text on a card12.31 : 1-83Pass
Button label5.50 : 143Pass (WCAG)
Heading on background5.50 : 1-42Pass (WCAG)
Link on a card5.50 : 1-42Pass (WCAG)
Accent badge on a card2.31 : 1-14Fail
Primary control on background5.50 : 1-42Pass (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 {
  --midnight-blue: #300051;
  --dark-olive-green: #505C00;
  --medium-purple: #A286CF;
  --light-green: #8FF1A8;
}

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 Seafoam & Deep Purple 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 Seafoam & Deep Purple can I use for text?

#300051 text on #8FF1A8 reaches 12.31 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026