PreviewingGo to this paletteOpen in generator
Code
/* Periwinkle Light — colorset.net */
:root {
--color-1: #CCCCFF;
--color-2: #D6D6FF;
--color-3: #E0E0FF;
--color-4: #EAEAFF;
--color-5: #C2C2FF;
--color-bg: #EAEAFF;
--color-surface: #F2F2FF;
--color-border: #D1D1E9;
--color-text: #4A477B;
--color-muted: #676780;
--color-primary: #706FA6;
--color-on-primary: #FFFFFF;
--color-accent: #858598;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E0D1E;
--color-surface: #181729;
--color-border: #2B2B41;
--color-text: #EAEAFF;
--color-muted: #848496;
--color-primary: #C2C2FF;
--color-on-primary: #0E0D1E;
--color-accent: #D6D6FF;
--color-on-accent: #0E0D1E;
}
}
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 4 | adjusted for contrast · from #C2C2FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #C2C2FF | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #C2C2FF | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C2C2FF | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.15:1 | AAA pass 4.5:1 | |
| Text on surface | 7.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.81:1 | AA pass 4.5:1 | |
| Primary on background | 3.92:1 | AA Large pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.18:1 | AAA pass 4.5:1 | |
| Text on surface | 14.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.23:1 | AA pass 4.5:1 | |
| Label on primary | 11.37:1 | AAA pass 4.5:1 | |
| Label on accent | 13.63:1 | AAA pass 4.5:1 | |
| Primary on background | 11.37:1 | AAA pass 3:1 | |
| Accent on background | 13.63: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 | #CCCCFF (Text 1) | #D6D6FF (Text 2) | #E0E0FF (Text 3) | #EAEAFF (Text 4) | #C2C2FF (Text 5) |
|---|---|---|---|---|---|
| #CCCCFF | Same color | 1.09— | 1.19— | 1.30— | 1.10— |
| #D6D6FF | 1.09— | Same color | 1.09— | 1.19— | 1.20— |
| #E0E0FF | 1.19— | 1.09— | Same color | 1.09— | 1.31— |
| #EAEAFF | 1.30— | 1.19— | 1.09— | Same color | 1.42— |
| #C2C2FF | 1.10— | 1.20— | 1.31— | 1.42— | Same color |
Shades
Shades and tints (50–950)
