PreviewingGo to this paletteOpen in generator
Code
/* Periwinkle Lavender — colorset.net */
:root {
--color-1: #C3CDE6;
--color-2: #D0D9FF;
--color-3: #DDE3FF;
--color-4: #E6EBFF;
--color-5: #F0F5FF;
--color-bg: #F0F5FF;
--color-surface: #FBFCFF;
--color-border: #D6DCE9;
--color-text: #495267;
--color-muted: #666F85;
--color-primary: #828AAD;
--color-on-primary: #000000;
--color-accent: #535975;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0F16;
--color-surface: #171920;
--color-border: #2A2E38;
--color-text: #F0F5FF;
--color-muted: #868A93;
--color-primary: #D0D9FF;
--color-on-primary: #0D0F16;
--color-accent: #9CA3C2;
--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 | from palette · color 5 | adjusted for contrast · from #C3CDE6 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C3CDE6 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C3CDE6 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C3CDE6 | adjusted for contrast · from #C3CDE6 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.15:1 | AAA pass 4.5:1 | |
| Text on surface | 7.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.60:1 | AA pass 4.5:1 | |
| Label on primary | 6.19:1 | AA pass 4.5:1 | |
| Label on accent | 6.88:1 | AA pass 4.5:1 | |
| Primary on background | 3.10:1 | AA Large pass 3:1 | |
| Accent on background | 6.29:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.51:1 | AAA pass 4.5:1 | |
| Text on surface | 16.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.53:1 | AA pass 4.5:1 | |
| Label on primary | 13.72:1 | AAA pass 4.5:1 | |
| Label on accent | 7.69:1 | AAA pass 4.5:1 | |
| Primary on background | 13.72:1 | AAA pass 3:1 | |
| Accent on background | 7.69: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 | #C3CDE6 (Text 1) | #D0D9FF (Text 2) | #DDE3FF (Text 3) | #E6EBFF (Text 4) | #F0F5FF (Text 5) |
|---|---|---|---|---|---|
| #C3CDE6 | Same color | 1.14— | 1.25— | 1.34— | 1.46— |
| #D0D9FF | 1.14— | Same color | 1.10— | 1.18— | 1.28— |
| #DDE3FF | 1.25— | 1.10— | Same color | 1.07— | 1.16— |
| #E6EBFF | 1.34— | 1.18— | 1.07— | Same color | 1.09— |
| #F0F5FF | 1.46— | 1.28— | 1.16— | 1.09— | Same color |
Shades
Shades and tints (50–950)
