Swamp Green & Very Dark Purple
A bold palette of 3 colors from the Afoli gallery: #31002E, #6C8200, #EEE5FF.
Open in the Afoli palette generator →
#31002E · Midnight Blue#6C8200 · Olive#EEE5FF · Lavender
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #31002E | rgb(49, 0, 46) | hsl(304, 100%, 10%) | 0, 100, 6, 81 | ≈ Midnight Blue |
| #6C8200 | rgb(108, 130, 0) | hsl(70, 100%, 25%) | 17, 0, 100, 49 | ≈ Olive |
| #EEE5FF | rgb(238, 229, 255) | hsl(261, 100%, 95%) | 7, 10, 0, 0 | ≈ 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 · #6C8200
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 14.77 : 1 | -92 | Pass |
| Text on a card | 14.77 : 1 | -92 | Pass |
| Button label | 4.13 : 1 | 32 | Fail |
| Heading on background | 4.13 : 1 | -30 | Pass (WCAG) |
| Link on a card | 4.13 : 1 | -30 | Fail |
| Accent badge on a card | 4.13 : 1 | -30 | Pass (WCAG) |
| Primary control on background | 4.13 : 1 | -30 | Pass (WCAG) |
CSS variables
:root {
--midnight-blue: #31002E;
--olive: #6C8200;
--lavender: #EEE5FF;
}
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 Swamp Green & Very Dark 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 Swamp Green & Very Dark Purple can I use for text?
#31002E text on #EEE5FF reaches 14.77 : 1, the strongest pair of the palette.
Similar palettes
- Emerald & Aubergine
- Yellowish Brown & Dark Brown
- Grape Purple & Pale Mauve (Mono)
- Earth & Sea Shell
- Light Plum & Misty Rose
- Brown Green & Old Lace
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)