AfoliOpen Afoli →

Light Purple & Midnight Purple

A bold palette of 4 colors from the Afoli gallery: #280046, #596707, #C27BFF, #CFDF3A.

Open in the Afoli palette generator →

#280046 · Midnight Blue#596707 · Dark Olive Green#C27BFF · Orchid#CFDF3A · Gold

Colors in this palette

HEXRGBHSLCMYKNearest named color
#280046rgb(40, 0, 70)hsl(274, 100%, 14%)43, 100, 0, 73≈ Midnight Blue
#596707rgb(89, 103, 7)hsl(69, 87%, 22%)14, 0, 93, 60≈ Dark Olive Green
#C27BFFrgb(194, 123, 255)hsl(272, 100%, 74%)24, 52, 0, 0≈ Orchid
#CFDF3Argb(207, 223, 58)hsl(66, 72%, 55%)7, 0, 74, 13≈ Gold

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

Roles: background #280046, surface #280046, text #CFDF3A, primary #C27BFF, accent #596707 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background12.11 : 1-79Pass
Text on a card12.11 : 1-79Pass
Button label6.42 : 148Pass (WCAG)
Heading on background6.42 : 1-47Pass (WCAG)
Link on a card6.42 : 1-47Pass (WCAG)
Accent badge on a card2.86 : 1-19Fail
Primary control on background6.42 : 1-47Pass

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: #280046;
  --dark-olive-green: #596707;
  --orchid: #C27BFF;
  --gold: #CFDF3A;
}

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

#280046 text on #CFDF3A reaches 12.11 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026