PreviewingGo to this paletteOpen in generator
Code
/* Primary Form — colorset.net */
:root {
--color-1: #F4F0E6;
--color-2: #D7261E;
--color-3: #1E4B9C;
--color-4: #F2B632;
--color-5: #1A1A1A;
--color-bg: #F4F0E6;
--color-surface: #FAF7F1;
--color-border: #DDD7CA;
--color-text: #1A1A1A;
--color-muted: #6B6B6B;
--color-primary: #D7261E;
--color-on-primary: #FFFFFF;
--color-accent: #1E4B9C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A1A1A;
--color-surface: #252525;
--color-border: #3C393A;
--color-text: #F4F0E6;
--color-muted: #918E84;
--color-primary: #D7261E;
--color-on-primary: #FFFFFF;
--color-accent: #406FC3;
--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 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 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #1E4B9C |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.29:1 | AAA pass 4.5:1 | |
| Text on surface | 16.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.68:1 | AA pass 4.5:1 | |
| Label on primary | 5.02:1 | AA pass 4.5:1 | |
| Label on accent | 8.26:1 | AAA pass 4.5:1 | |
| Primary on background | 4.41:1 | AA Large pass 3:1 | |
| Accent on background | 7.26:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.29:1 | AAA pass 4.5:1 | |
| Text on surface | 13.47:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 5.02:1 | AA pass 4.5:1 | |
| Label on accent | 4.91:1 | AA pass 4.5:1 | |
| Primary on background | 3.47:1 | AA Large pass 3:1 | |
| Accent on background | 3.55: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 | #F4F0E6 (Text 1) | #D7261E (Text 2) | #1E4B9C (Text 3) | #F2B632 (Text 4) | #1A1A1A (Text 5) |
|---|---|---|---|---|---|
| #F4F0E6 | Same color | 4.41AA Large | 7.26AAA | 1.60— | 15.29AAA |
| #D7261E | 4.41AA Large | Same color | 1.65— | 2.75— | 3.47AA Large |
| #1E4B9C | 7.26AAA | 1.65— | Same color | 4.53AA | 2.11— |
| #F2B632 | 1.60— | 2.75— | 4.53AA | Same color | 9.54AAA |
| #1A1A1A | 15.29AAA | 3.47AA Large | 2.11— | 9.54AAA | Same color |
Shades
Shades and tints (50–950)
