PreviewingGo to this paletteOpen in generator
Code
/* Spectrum Colors — colorset.net */
:root {
--color-1: #8E24AA;
--color-2: #3F51B5;
--color-3: #2196F3;
--color-4: #4CAF50;
--color-5: #FF9800;
--color-bg: #FFF5EC;
--color-surface: #F7EBE0;
--color-border: #E1D2C4;
--color-text: #3E4B80;
--color-muted: #636A83;
--color-primary: #8E24AA;
--color-on-primary: #FFFFFF;
--color-accent: #1B8626;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #262D42;
--color-text: #CCAE94;
--color-muted: #947E6A;
--color-primary: #9E37BA;
--color-on-primary: #FFFFFF;
--color-accent: #4CAF50;
--color-on-accent: #0A0E1F;
}
}
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 #FF9800 | adjusted for contrast · from #3F51B5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #3F51B5 | adjusted for contrast · from #FF9800 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | adjusted for contrast · from #8E24AA |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4CAF50 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 7.04:1 | AAA pass 4.5:1 | |
| Label on accent | 4.68:1 | AA pass 4.5:1 | |
| Primary on background | 6.55:1 | AA pass 3:1 | |
| Accent on background | 4.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.17:1 | AAA pass 4.5:1 | |
| Text on surface | 8.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.66:1 | AA pass 4.5:1 | |
| Label on accent | 6.90:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 6.90:1 | AA 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 | #8E24AA (Text 1) | #3F51B5 (Text 2) | #2196F3 (Text 3) | #4CAF50 (Text 4) | #FF9800 (Text 5) |
|---|---|---|---|---|---|
| #8E24AA | Same color | 1.02— | 2.25— | 2.53— | 3.27AA Large |
| #3F51B5 | 1.02— | Same color | 2.20— | 2.47— | 3.19AA Large |
| #2196F3 | 2.25— | 2.20— | Same color | 1.12— | 1.45— |
| #4CAF50 | 2.53— | 2.47— | 1.12— | Same color | 1.29— |
| #FF9800 | 3.27AA Large | 3.19AA Large | 1.45— | 1.29— | Same color |
Shades
Shades and tints (50–950)
