PreviewingGo to this paletteOpen in generator
Code
/* Latent Violet — colorset.net */
:root {
--color-1: #F8F8FE;
--color-2: #7D5BE6;
--color-3: #74E0D9;
--color-4: #483C79;
--color-5: #110F1E;
--color-bg: #F8F8FE;
--color-surface: #EFEFF5;
--color-border: #D6D6DF;
--color-text: #110F1E;
--color-muted: #676579;
--color-primary: #7D5BE6;
--color-on-primary: #FFFFFF;
--color-accent: #1F9994;
--color-on-accent: #110F1E;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #110F1E;
--color-surface: #1B1929;
--color-border: #2F2D41;
--color-text: #F8F8FE;
--color-muted: #8D8D92;
--color-primary: #7D5BE6;
--color-on-primary: #FFFFFF;
--color-accent: #74E0D9;
--color-on-accent: #110F1E;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #74E0D9 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.87:1 | AAA pass 4.5:1 | |
| Text on surface | 16.50:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.34:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 5.44:1 | AA pass 4.5:1 | |
| Primary on background | 4.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.87:1 | AAA pass 4.5:1 | |
| Text on surface | 16.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.72:1 | AA pass 4.5:1 | |
| Label on primary | 4.66:1 | AA pass 4.5:1 | |
| Label on accent | 12.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.06:1 | AA Large pass 3:1 | |
| Accent on background | 12.07: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 | #F8F8FE (Text 1) | #7D5BE6 (Text 2) | #74E0D9 (Text 3) | #483C79 (Text 4) | #110F1E (Text 5) |
|---|---|---|---|---|---|
| #F8F8FE | Same color | 4.40AA Large | 1.48— | 9.03AAA | 17.87AAA |
| #7D5BE6 | 4.40AA Large | Same color | 2.97— | 2.05— | 4.06AA Large |
| #74E0D9 | 1.48— | 2.97— | Same color | 6.10AA | 12.07AAA |
| #483C79 | 9.03AAA | 2.05— | 6.10AA | Same color | 1.98— |
| #110F1E | 17.87AAA | 4.06AA Large | 12.07AAA | 1.98— | Same color |
Shades
Shades and tints (50–950)
