PreviewingGo to this paletteOpen in generator
Code
/* Violet Dream — colorset.net */
:root {
--color-1: #5F27CD;
--color-2: #00D2D3;
--color-3: #FF9FF3;
--color-4: #54A0FF;
--color-5: #5F27CD;
--color-bg: #FFF2FD;
--color-surface: #F6E9F4;
--color-border: #DFCFDC;
--color-text: #50477F;
--color-muted: #6B6982;
--color-primary: #5F27CD;
--color-on-primary: #FFFFFF;
--color-accent: #008384;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0C1E;
--color-surface: #191729;
--color-border: #2D2A41;
--color-text: #DABBD5;
--color-muted: #927B8E;
--color-primary: #7143E5;
--color-on-primary: #FFFFFF;
--color-accent: #00D2D3;
--color-on-accent: #0F0C1E;
}
}
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 #FF9FF3 | adjusted for contrast · from #5F27CD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5F27CD | adjusted for contrast · from #FF9FF3 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #5F27CD |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #54A0FF | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.60:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.88:1 | AA pass 4.5:1 | |
| Label on primary | 7.90:1 | AAA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 7.29:1 | AAA pass 3:1 | |
| Accent on background | 4.23:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.04:1 | AAA pass 4.5:1 | |
| Text on surface | 10.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.77:1 | AA pass 4.5:1 | |
| Label on accent | 10.22:1 | AAA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 10.22: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 | #5F27CD (Text 1) | #00D2D3 (Text 2) | #FF9FF3 (Text 3) | #54A0FF (Text 4) | #5F27CD (Text 5) |
|---|---|---|---|---|---|
| #5F27CD | Same color | 4.20AA Large | 4.33AA Large | 2.95— | 1.00— |
| #00D2D3 | 4.20AA Large | Same color | 1.03— | 1.42— | 4.20AA Large |
| #FF9FF3 | 4.33AA Large | 1.03— | Same color | 1.47— | 4.33AA Large |
| #54A0FF | 2.95— | 1.42— | 1.47— | Same color | 2.95— |
| #5F27CD | 1.00— | 4.20AA Large | 4.33AA Large | 2.95— | Same color |
Shades
Shades and tints (50–950)
