Twilight & Light Periwinkle
A earthy palette of 5 colors from the Afoli gallery: #272838, #664B81, #826F90, #CB9CC9, #CBC7F0.
Open in the Afoli palette generator →
#272838 · Midnight Blue#664B81 · Dark Slate Blue#826F90 · Slate Gray#CB9CC9 · Plum#CBC7F0 · Thistle
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #272838 | rgb(39, 40, 56) | hsl(236, 18%, 19%) | 30, 29, 0, 78 | ≈ Midnight Blue |
| #664B81 | rgb(102, 75, 129) | hsl(270, 26%, 40%) | 21, 42, 0, 49 | ≈ Dark Slate Blue |
| #826F90 | rgb(130, 111, 144) | hsl(275, 13%, 50%) | 10, 23, 0, 44 | ≈ Slate Gray |
| #CB9CC9 | rgb(203, 156, 201) | hsl(303, 31%, 70%) | 0, 23, 1, 20 | ≈ Plum |
| #CBC7F0 | rgb(203, 199, 240) | hsl(246, 58%, 86%) | 15, 17, 0, 6 | ≈ Thistle |
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 · #CB9CC9
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 8.96 : 1 | -72 | Pass (WCAG) |
| Text on a card | 4.49 : 1 | -57 | Fail |
| Button label | 6.32 : 1 | 54 | Pass (WCAG) |
| Heading on background | 6.32 : 1 | -53 | Pass (WCAG) |
| Link on a card | 3.16 : 1 | -39 | Fail |
| Accent badge on a card | 1.60 : 1 | -12 | Fail |
| Primary control on background | 6.32 : 1 | -53 | Pass |
CSS variables
:root {
--midnight-blue: #272838;
--dark-slate-blue: #664B81;
--slate-gray: #826F90;
--plum: #CB9CC9;
--thistle: #CBC7F0;
}
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 Twilight & Light Periwinkle 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 Twilight & Light Periwinkle can I use for text?
#272838 text on #CBC7F0 reaches 8.96 : 1, the strongest pair of the palette.
Similar palettes
- Dusk & Light Lavendar
- Dull Purple & Light Lavender
- Dark Lavender & Lavender
- Dark Slate Blue & Lavender Blush
- Marine & Pale Lilac
- Dark Lavender & Pastel Pink
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)