PreviewingGo to this paletteOpen in generator
Code
/* Periwinkle — colorset.net */
:root {
--color-1: #8FA4D3;
--color-2: #A8B8E0;
--color-3: #C5D1ED;
--color-4: #B2C2E6;
--color-5: #7A94CC;
--color-bg: #F3F7FF;
--color-surface: #EAEDF6;
--color-border: #D0D5E1;
--color-text: #374D80;
--color-muted: #606B83;
--color-primary: #5D76AC;
--color-on-primary: #FFFFFF;
--color-accent: #7B86A0;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242D42;
--color-text: #C5D1ED;
--color-muted: #78839C;
--color-primary: #7A94CC;
--color-on-primary: #080F1F;
--color-accent: #A8B8E0;
--color-on-accent: #080F1F;
}
}
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 #C5D1ED | adjusted for contrast · from #7A94CC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #7A94CC | from palette · color 3 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7A94CC | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7A94CC | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.76:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.40: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.03:1 | AA pass 4.5:1 | |
| Label on primary | 6.31:1 | AA pass 4.5:1 | |
| Label on accent | 9.65:1 | AAA pass 4.5:1 | |
| Primary on background | 6.31:1 | AA pass 3:1 | |
| Accent on background | 9.65: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 | #8FA4D3 (Text 1) | #A8B8E0 (Text 2) | #C5D1ED (Text 3) | #B2C2E6 (Text 4) | #7A94CC (Text 5) |
|---|---|---|---|---|---|
| #8FA4D3 | Same color | 1.26— | 1.63— | 1.40— | 1.21— |
| #A8B8E0 | 1.26— | Same color | 1.29— | 1.11— | 1.53— |
| #C5D1ED | 1.63— | 1.29— | Same color | 1.17— | 1.98— |
| #B2C2E6 | 1.40— | 1.11— | 1.17— | Same color | 1.69— |
| #7A94CC | 1.21— | 1.53— | 1.98— | 1.69— | Same color |
Shades
Shades and tints (50–950)
