PreviewingGo to this paletteOpen in generator
Code
/* Marathon — colorset.net */
:root {
--color-1: #F7F7F2;
--color-2: #D7263D;
--color-3: #F9A620;
--color-4: #DADBD0;
--color-5: #1E1F1A;
--color-bg: #F7F7F2;
--color-surface: #EEEEE9;
--color-border: #D5D5CD;
--color-text: #1E1F1A;
--color-muted: #6A6B65;
--color-primary: #D7263D;
--color-on-primary: #FFFFFF;
--color-accent: #A26900;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1E1F1A;
--color-surface: #292A25;
--color-border: #3E4037;
--color-text: #F7F7F2;
--color-muted: #94948F;
--color-primary: #DB2B40;
--color-on-primary: #FFFFFF;
--color-accent: #F9A620;
--color-on-accent: #1E1F1A;
}
}
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 | adjusted for contrast · from #D7263D |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D7263D | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.43:1 | AAA pass 4.5:1 | |
| Text on surface | 14.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.96:1 | AA pass 4.5:1 | |
| Label on accent | 4.61:1 | AA pass 4.5:1 | |
| Primary on background | 4.62:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.43:1 | AAA pass 4.5:1 | |
| Text on surface | 13.46:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.44:1 | AA pass 4.5:1 | |
| Label on primary | 4.74:1 | AA pass 4.5:1 | |
| Label on accent | 8.30:1 | AAA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 8.30: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 | #F7F7F2 (Text 1) | #D7263D (Text 2) | #F9A620 (Text 3) | #DADBD0 (Text 4) | #1E1F1A (Text 5) |
|---|---|---|---|---|---|
| #F7F7F2 | Same color | 4.62AA | 1.86— | 1.30— | 15.43AAA |
| #D7263D | 4.62AA | Same color | 2.48— | 3.55AA Large | 3.34AA Large |
| #F9A620 | 1.86— | 2.48— | Same color | 1.43— | 8.30AAA |
| #DADBD0 | 1.30— | 3.55AA Large | 1.43— | Same color | 11.87AAA |
| #1E1F1A | 15.43AAA | 3.34AA Large | 8.30AAA | 11.87AAA | Same color |
Shades
Shades and tints (50–950)
