PreviewingGo to this paletteOpen in generator
Code
/* Midnight Periwinkle — colorset.net */
:root {
--color-1: #191970;
--color-2: #3A3A8B;
--color-3: #5B5BA6;
--color-4: #7C7CC1;
--color-5: #9D9DDC;
--color-bg: #F5F6FF;
--color-surface: #EBECFB;
--color-border: #D2D3E5;
--color-text: #1D2557;
--color-muted: #636A83;
--color-primary: #5B5BA6;
--color-on-primary: #FFFFFF;
--color-accent: #191970;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #A0A1C3;
--color-muted: #7F809B;
--color-primary: #5E5EA9;
--color-on-primary: #FFFFFF;
--color-accent: #9093D7;
--color-on-accent: #0A0E1F;
}
}
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 #9D9DDC | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #9D9DDC |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #5B5BA6 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #9D9DDC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.41:1 | AAA pass 4.5:1 | |
| Text on surface | 12.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 14.85:1 | AAA pass 4.5:1 | |
| Primary on background | 5.59:1 | AA pass 3:1 | |
| Accent on background | 13.79:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.65:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 6.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 6.70:1 | AA 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 | #191970 (Text 1) | #3A3A8B (Text 2) | #5B5BA6 (Text 3) | #7C7CC1 (Text 4) | #9D9DDC (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.53— | 2.47— | 3.90AA Large | 5.86AA |
| #3A3A8B | 1.53— | Same color | 1.62— | 2.55— | 3.84AA Large |
| #5B5BA6 | 2.47— | 1.62— | Same color | 1.58— | 2.37— |
| #7C7CC1 | 3.90AA Large | 2.55— | 1.58— | Same color | 1.50— |
| #9D9DDC | 5.86AA | 3.84AA Large | 2.37— | 1.50— | Same color |
Shades
Shades and tints (50–950)
