PreviewingGo to this paletteOpen in generator
Code
/* Festive Mix — colorset.net */
:root {
--color-1: #DC143C;
--color-2: #228B22;
--color-3: #FFD700;
--color-4: #FFFFFF;
--color-5: #C0C0C0;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #315E2F;
--color-muted: #637661;
--color-primary: #DC143C;
--color-on-primary: #FFFFFF;
--color-accent: #1D881E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #061305;
--color-surface: #0F1E0E;
--color-border: #223320;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #DC143C;
--color-on-primary: #FFFFFF;
--color-accent: #1D881E;
--color-on-accent: #FFFFFF;
}
}
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 4 | adjusted for contrast · from #228B22 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #228B22 | from palette · color 4 |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.57:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.99:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 4.99:1 | AA pass 3:1 | |
| Accent on background | 4.57:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.04:1 | AAA pass 4.5:1 | |
| Text on surface | 17.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.99:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.82:1 | AA Large pass 3:1 | |
| Accent on background | 4.16:1 | AA Large 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 | #DC143C (Text 1) | #228B22 (Text 2) | #FFD700 (Text 3) | #FFFFFF (Text 4) | #C0C0C0 (Text 5) |
|---|---|---|---|---|---|
| #DC143C | Same color | 1.14— | 3.56AA Large | 4.99AA | 2.74— |
| #228B22 | 1.14— | Same color | 3.13AA Large | 4.39AA Large | 2.41— |
| #FFD700 | 3.56AA Large | 3.13AA Large | Same color | 1.40— | 1.30— |
| #FFFFFF | 4.99AA | 4.39AA Large | 1.40— | Same color | 1.82— |
| #C0C0C0 | 2.74— | 2.41— | 1.30— | 1.82— | Same color |
Shades
Shades and tints (50–950)
