PreviewingGo to this paletteOpen in generator
Code
/* Moonlit Periwinkle — colorset.net */
:root {
--color-1: #8C92AC;
--color-2: #A1A7C4;
--color-3: #B6BCDC;
--color-4: #CBD1F4;
--color-5: #E0E6FF;
--color-bg: #F4F6FE;
--color-surface: #EBEDF5;
--color-border: #D2D4DF;
--color-text: #484D64;
--color-muted: #646982;
--color-primary: #8086A0;
--color-on-primary: #000000;
--color-accent: #51556A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0F16;
--color-surface: #171921;
--color-border: #2B2D38;
--color-text: #E0E6FF;
--color-muted: #7D8298;
--color-primary: #8C92AC;
--color-on-primary: #0D0F16;
--color-accent: #CBD1F4;
--color-on-accent: #0D0F16;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | adjusted for contrast · from #E0E6FF | adjusted for contrast · from #8C92AC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8C92AC | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8C92AC | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8C92AC | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.72:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.84:1 | AA pass 4.5:1 | |
| Label on accent | 7.35:1 | AAA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 6.81:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.43:1 | AAA pass 4.5:1 | |
| Text on surface | 14.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.22:1 | AA pass 4.5:1 | |
| Label on accent | 12.73:1 | AAA pass 4.5:1 | |
| Primary on background | 6.22:1 | AA pass 3:1 | |
| Accent on background | 12.73:1 | AAA pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #8C92AC (Text 1) | #A1A7C4 (Text 2) | #B6BCDC (Text 3) | #CBD1F4 (Text 4) | #E0E6FF (Text 5) |
|---|---|---|---|---|---|
| #8C92AC | Same color | 1.30— | 1.64— | 2.05— | 2.48— |
| #A1A7C4 | 1.30— | Same color | 1.27— | 1.58— | 1.92— |
| #B6BCDC | 1.64— | 1.27— | Same color | 1.25— | 1.51— |
| #CBD1F4 | 2.05— | 1.58— | 1.25— | Same color | 1.21— |
| #E0E6FF | 2.48— | 1.92— | 1.51— | 1.21— | Same color |
Shades
Shades and tints (50–950)
