PreviewingGo to this paletteOpen in generator
Code
/* Due Diligence — colorset.net */
:root {
--color-1: #111820;
--color-2: #6FA8DC;
--color-3: #E3B505;
--color-4: #26313D;
--color-5: #E8EDF2;
--color-bg: #E8EDF2;
--color-surface: #F1F4F7;
--color-border: #CDD5DD;
--color-text: #111820;
--color-muted: #606973;
--color-primary: #8F7100;
--color-on-primary: #FFFFFF;
--color-accent: #427AAB;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #111820;
--color-surface: #1B232B;
--color-border: #2E3843;
--color-text: #E8EDF2;
--color-muted: #868B8F;
--color-primary: #E3B505;
--color-on-primary: #111820;
--color-accent: #6FA8DC;
--color-on-accent: #111820;
}
}
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 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E3B505 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #6FA8DC | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.17:1 | AAA pass 4.5:1 | |
| Text on surface | 16.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.73:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.87:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.17:1 | AAA pass 4.5:1 | |
| Text on surface | 13.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.19:1 | AA pass 4.5:1 | |
| Label on primary | 9.26:1 | AAA pass 4.5:1 | |
| Label on accent | 7.07:1 | AAA pass 4.5:1 | |
| Primary on background | 9.26:1 | AAA pass 3:1 | |
| Accent on background | 7.07: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 | #111820 (Text 1) | #6FA8DC (Text 2) | #E3B505 (Text 3) | #26313D (Text 4) | #E8EDF2 (Text 5) |
|---|---|---|---|---|---|
| #111820 | Same color | 7.07AAA | 9.26AAA | 1.35— | 15.17AAA |
| #6FA8DC | 7.07AAA | Same color | 1.31— | 5.23AA | 2.15— |
| #E3B505 | 9.26AAA | 1.31— | Same color | 6.85AA | 1.64— |
| #26313D | 1.35— | 5.23AA | 6.85AA | Same color | 11.22AAA |
| #E8EDF2 | 15.17AAA | 2.15— | 1.64— | 11.22AAA | Same color |
Shades
Shades and tints (50–950)
