Purpley & Midnight Purple
A vivid palette of 4 colors from the Afoli gallery: #20083A, #7A4AD9, #008977, #BA93FF.
Open in the Afoli palette generator →
#20083A · Midnight Blue#7A4AD9 · Slate Blue#008977 · Dark Cyan#BA93FF · Plum
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #20083A | rgb(32, 8, 58) | hsl(269, 76%, 13%) | 45, 86, 0, 77 | ≈ Midnight Blue |
| #7A4AD9 | rgb(122, 74, 217) | hsl(260, 65%, 57%) | 44, 66, 0, 15 | ≈ Slate Blue |
| #008977 | rgb(0, 137, 119) | hsl(172, 100%, 27%) | 100, 0, 13, 46 | ≈ Dark Cyan |
| #BA93FF | rgb(186, 147, 255) | hsl(262, 100%, 79%) | 27, 42, 0, 0 | ≈ Plum |
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 · #7A4AD9
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 7.52 : 1 | -53 | Pass (WCAG) |
| Text on a card | 7.52 : 1 | -53 | Pass (WCAG) |
| Button label | 3.29 : 1 | 26 | Fail |
| Heading on background | 3.29 : 1 | -24 | Pass (WCAG) |
| Link on a card | 3.29 : 1 | -24 | Fail |
| Accent badge on a card | 4.19 : 1 | -31 | Pass (WCAG) |
| Primary control on background | 3.29 : 1 | -24 | Pass (WCAG) |
CSS variables
:root {
--midnight-blue: #20083A;
--slate-blue: #7A4AD9;
--dark-cyan: #008977;
--plum: #BA93FF;
}
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 Purpley & 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 Purpley & Midnight Purple can I use for text?
#20083A text on #BA93FF reaches 7.52 : 1, the strongest pair of the palette.
Similar palettes
- Light Indigo & Dark Mustard
- Warm Blue & Medium Green
- Pinky Purple & Very Dark Purple
- Purply Pink & Dark Brown
- Dark Slate Blue & Lavender Blush
- Pale Purple & Dark Purple
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)