Moss & Dark Slate Blue
A retro palette of 3 colors from the Afoli gallery: #4B366B, #7F9946, #D8E6A1.
Open in the Afoli palette generator →
#4B366B · Dark Slate Blue#7F9946 · Olive Drab#D8E6A1 · Pale Goldenrod
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #4B366B | rgb(75, 54, 107) | hsl(264, 33%, 32%) | 30, 50, 0, 58 | ≈ Dark Slate Blue |
| #7F9946 | rgb(127, 153, 70) | hsl(79, 37%, 44%) | 17, 0, 54, 40 | ≈ Olive Drab |
| #D8E6A1 | rgb(216, 230, 161) | hsl(72, 58%, 77%) | 6, 0, 30, 10 | ≈ Pale Goldenrod |
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 · #7F9946
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 7.73 : 1 | -77 | Pass |
| Text on a card | 7.73 : 1 | -77 | Pass |
| Button label | 3.21 : 1 | 33 | Fail |
| Heading on background | 3.21 : 1 | -32 | Pass (WCAG) |
| Link on a card | 3.21 : 1 | -32 | Fail |
| Accent badge on a card | 3.21 : 1 | -32 | Pass (WCAG) |
| Primary control on background | 3.21 : 1 | -32 | Pass (WCAG) |
CSS variables
:root {
--dark-slate-blue: #4B366B;
--olive-drab: #7F9946;
--pale-goldenrod: #D8E6A1;
}
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 Moss & Dark Slate Blue 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 Moss & Dark Slate Blue can I use for text?
#4B366B text on #D8E6A1 reaches 7.73 : 1, the strongest pair of the palette.
Similar palettes
- Lilac & Grape
- Windows Blue & Pale Goldenrod
- Slate Green & Pale Mauve
- Pale Lime & Very Dark Green
- Sea & Dark Teal
- Light Grey Green & Very Dark Green
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)