PreviewingGo to this paletteOpen in generator
Code
/* Elemental Colors — colorset.net */
:root {
--color-1: #3A8FB7;
--color-2: #FFB800;
--color-3: #8E44AD;
--color-4: #E67E22;
--color-5: #27AE60;
--color-bg: #FEF6E8;
--color-surface: #F5ECDF;
--color-border: #DED4C3;
--color-text: #644173;
--color-muted: #75667D;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #008644;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #1F1425;
--color-border: #35283C;
--color-text: #D8C4A2;
--color-muted: #908169;
--color-primary: #8E44AD;
--color-on-primary: #FFFFFF;
--color-accent: #27AE60;
--color-on-accent: #150A1A;
}
}
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 #FFB800 | adjusted for contrast · from #8E44AD |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8E44AD | adjusted for contrast · from #FFB800 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #27AE60 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 5.46:1 | AA pass 3:1 | |
| Accent on background | 4.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.32:1 | AAA pass 4.5:1 | |
| Text on surface | 10.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 6.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 6.70: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 | #3A8FB7 (Text 1) | #FFB800 (Text 2) | #8E44AD (Text 3) | #E67E22 (Text 4) | #27AE60 (Text 5) |
|---|---|---|---|---|---|
| #3A8FB7 | Same color | 2.09— | 1.62— | 1.27— | 1.26— |
| #FFB800 | 2.09— | Same color | 3.38AA Large | 1.64— | 1.66— |
| #8E44AD | 1.62— | 3.38AA Large | Same color | 2.06— | 2.04— |
| #E67E22 | 1.27— | 1.64— | 2.06— | Same color | 1.01— |
| #27AE60 | 1.26— | 1.66— | 2.04— | 1.01— | Same color |
Shades
Shades and tints (50–950)
