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
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #280046 | rgb(40, 0, 70) | hsl(274, 100%, 14%) | 43, 100, 0, 73 | ≈ Midnight Blue |
| #596707 | rgb(89, 103, 7) | hsl(69, 87%, 22%) | 14, 0, 93, 60 | ≈ Dark Olive Green |
| #C27BFF | rgb(194, 123, 255) | hsl(272, 100%, 74%) | 24, 52, 0, 0 | ≈ Orchid |
| #CFDF3A | rgb(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
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 12.11 : 1 | -79 | Pass |
| Text on a card | 12.11 : 1 | -79 | Pass |
| Button label | 6.42 : 1 | 48 | Pass (WCAG) |
| Heading on background | 6.42 : 1 | -47 | Pass (WCAG) |
| Link on a card | 6.42 : 1 | -47 | Pass (WCAG) |
| Accent badge on a card | 2.86 : 1 | -19 | Fail |
| Primary control on background | 6.42 : 1 | -47 | Pass |
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
- Seafoam & Deep Purple
- Pinky Purple & Very Dark Purple
- Lilac & Grape
- Pale Violet Red & Dark Plum (Bold) 2
- Grape Purple & Greenish Beige
- Purpley & Midnight 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)