PreviewingGo to this paletteOpen in generator
Code
/* Periwinkle Haze — colorset.net */
:root {
--color-1: #6666FF;
--color-2: #8080FF;
--color-3: #9999FF;
--color-4: #B3B3FF;
--color-5: #CCCCFF;
--color-bg: #F6F6FF;
--color-surface: #ECECFB;
--color-border: #D3D3E5;
--color-text: #444980;
--color-muted: #656983;
--color-primary: #615FF8;
--color-on-primary: #FFFFFF;
--color-accent: #8584B3;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C0E1E;
--color-surface: #151829;
--color-border: #292C42;
--color-text: #CDCEF2;
--color-muted: #81819B;
--color-primary: #615FF8;
--color-on-primary: #FFFFFF;
--color-accent: #B3B3FF;
--color-on-accent: #0C0E1E;
}
}
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 #CCCCFF | adjusted for contrast · from #6666FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6666FF | adjusted for contrast · from #CCCCFF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #6666FF | adjusted for contrast · from #6666FF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #8080FF | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.34:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.49:1 | AAA pass 4.5:1 | |
| Text on surface | 11.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 9.85:1 | AAA pass 4.5:1 | |
| Primary on background | 4.10:1 | AA Large pass 3:1 | |
| Accent on background | 9.85: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 | #6666FF (Text 1) | #8080FF (Text 2) | #9999FF (Text 3) | #B3B3FF (Text 4) | #CCCCFF (Text 5) |
|---|---|---|---|---|---|
| #6666FF | Same color | 1.31— | 1.70— | 2.20— | 2.78— |
| #8080FF | 1.31— | Same color | 1.30— | 1.68— | 2.12— |
| #9999FF | 1.70— | 1.30— | Same color | 1.29— | 1.63— |
| #B3B3FF | 2.20— | 1.68— | 1.29— | Same color | 1.26— |
| #CCCCFF | 2.78— | 2.12— | 1.63— | 1.26— | Same color |
Shades
Shades and tints (50–950)
