PreviewingGo to this paletteOpen in generator
Code
/* Digital Red — colorset.net */
:root {
--color-1: #17202A;
--color-2: #922B21;
--color-3: #E74C3C;
--color-4: #F39C12;
--color-5: #F7DC6F;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #17202A;
--color-muted: #626D79;
--color-primary: #D53A2C;
--color-on-primary: #FFFFFF;
--color-accent: #8B7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #17202A;
--color-surface: #222B35;
--color-border: #35414E;
--color-text: #E6DDB8;
--color-muted: #999277;
--color-primary: #D53A2C;
--color-on-primary: #FFFFFF;
--color-accent: #F7DC6F;
--color-on-accent: #17202A;
}
}
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 #F7DC6F | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #F7DC6F |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E74C3C | adjusted for contrast · from #E74C3C |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #922B21 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.33:1 | AAA pass 4.5:1 | |
| Text on surface | 14.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 4.22:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.06:1 | AAA pass 4.5:1 | |
| Text on surface | 10.51:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 4.70:1 | AA pass 4.5:1 | |
| Label on accent | 12.08:1 | AAA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 12.08: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 | #17202A (Text 1) | #922B21 (Text 2) | #E74C3C (Text 3) | #F39C12 (Text 4) | #F7DC6F (Text 5) |
|---|---|---|---|---|---|
| #17202A | Same color | 2.03— | 4.31AA Large | 7.50AAA | 12.08AAA |
| #922B21 | 2.03— | Same color | 2.12— | 3.70AA Large | 5.95AA |
| #E74C3C | 4.31AA Large | 2.12— | Same color | 1.74— | 2.81— |
| #F39C12 | 7.50AAA | 3.70AA Large | 1.74— | Same color | 1.61— |
| #F7DC6F | 12.08AAA | 5.95AA | 2.81— | 1.61— | Same color |
Shades
Shades and tints (50–950)
