PreviewingGo to this paletteOpen in generator
Code
/* Modern Colors — colorset.net */
:root {
--color-1: #3498DB;
--color-2: #2ECC71;
--color-3: #E74C3C;
--color-4: #F39C12;
--color-5: #9B59B6;
--color-bg: #FFF5EA;
--color-surface: #F7EBE0;
--color-border: #E0D2C4;
--color-text: #644173;
--color-muted: #76667D;
--color-primary: #D53A2C;
--color-on-primary: #FFFFFF;
--color-accent: #008744;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150A1A;
--color-surface: #201424;
--color-border: #36283C;
--color-text: #C7AD90;
--color-muted: #94806B;
--color-primary: #D53A2C;
--color-on-primary: #FFFFFF;
--color-accent: #2ECC71;
--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 #F39C12 | adjusted for contrast · from #9B59B6 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9B59B6 | adjusted for contrast · from #F39C12 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E74C3C | adjusted for contrast · from #E74C3C |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2ECC71 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.66:1 | AAA pass 4.5:1 | |
| Text on surface | 7.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 4.36:1 | AA Large pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.00:1 | AAA pass 4.5:1 | |
| Text on surface | 8.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 9.16:1 | AAA pass 4.5:1 | |
| Primary on background | 4.10:1 | AA Large pass 3:1 | |
| Accent on background | 9.16: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 | #3498DB (Text 1) | #2ECC71 (Text 2) | #E74C3C (Text 3) | #F39C12 (Text 4) | #9B59B6 (Text 5) |
|---|---|---|---|---|---|
| #3498DB | Same color | 1.50— | 1.21— | 1.44— | 1.48— |
| #2ECC71 | 1.50— | Same color | 1.82— | 1.04— | 2.22— |
| #E74C3C | 1.21— | 1.82— | Same color | 1.74— | 1.22— |
| #F39C12 | 1.44— | 1.04— | 1.74— | Same color | 2.13— |
| #9B59B6 | 1.48— | 2.22— | 1.22— | 2.13— | Same color |
Shades
Shades and tints (50–950)
