PreviewingGo to this paletteOpen in generator
Code
/* Periwinkle Blue — colorset.net */
:root {
--color-1: #E6E6FA;
--color-2: #DDA0DD;
--color-3: #D8BFD8;
--color-4: #C8B2DB;
--color-5: #B8A6DE;
--color-bg: #E6E6FA;
--color-surface: #EEEEFA;
--color-border: #CDCDE4;
--color-text: #534273;
--color-muted: #6A637C;
--color-primary: #99609A;
--color-on-primary: #FFFFFF;
--color-accent: #828193;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110C1B;
--color-surface: #1C1626;
--color-border: #302A3E;
--color-text: #E6E6FA;
--color-muted: #828294;
--color-primary: #DDA0DD;
--color-on-primary: #110C1B;
--color-accent: #D8BFD8;
--color-on-accent: #110C1B;
}
}
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 1 | adjusted for contrast · from #B8A6DE |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #B8A6DE | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #B8A6DE | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B8A6DE | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.13:1 | AAA pass 4.5:1 | |
| Text on surface | 7.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 5.51:1 | AA pass 4.5:1 | |
| Primary on background | 3.80:1 | AA Large pass 3:1 | |
| Accent on background | 3.10:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.62:1 | AAA pass 4.5:1 | |
| Text on surface | 14.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 9.29:1 | AAA pass 4.5:1 | |
| Label on accent | 11.32:1 | AAA pass 4.5:1 | |
| Primary on background | 9.29:1 | AAA pass 3:1 | |
| Accent on background | 11.32: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 | #E6E6FA (Text 1) | #DDA0DD (Text 2) | #D8BFD8 (Text 3) | #C8B2DB (Text 4) | #B8A6DE (Text 5) |
|---|---|---|---|---|---|
| #E6E6FA | Same color | 1.68— | 1.38— | 1.57— | 1.79— |
| #DDA0DD | 1.68— | Same color | 1.22— | 1.07— | 1.06— |
| #D8BFD8 | 1.38— | 1.22— | Same color | 1.14— | 1.29— |
| #C8B2DB | 1.57— | 1.07— | 1.14— | Same color | 1.14— |
| #B8A6DE | 1.79— | 1.06— | 1.29— | 1.14— | Same color |
Shades
Shades and tints (50–950)
