PreviewingGo to this paletteOpen in generator
Code
/* Formal Mix — colorset.net */
:root {
--color-1: #8B0000;
--color-2: #FFD700;
--color-3: #2F4F4F;
--color-4: #FFFFFF;
--color-5: #32CD32;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #70322A;
--color-muted: #886A65;
--color-primary: #00A40B;
--color-on-primary: #000000;
--color-accent: #8B0000;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402622;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #32CD32;
--color-on-primary: #1C0907;
--color-accent: #B73A2D;
--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 #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B0000 | from palette · color 4 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #32CD32 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #8B0000 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.64:1 | AAA pass 4.5:1 | |
| Text on surface | 8.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 6.32:1 | AA pass 4.5:1 | |
| Label on accent | 10.01:1 | AAA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 10.01:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.24:1 | AAA pass 4.5:1 | |
| Text on surface | 17.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.95:1 | AA pass 4.5:1 | |
| Label on primary | 9.08:1 | AAA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 9.08:1 | AAA pass 3:1 | |
| Accent on background | 3.35: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 | #8B0000 (Text 1) | #FFD700 (Text 2) | #2F4F4F (Text 3) | #FFFFFF (Text 4) | #32CD32 (Text 5) |
|---|---|---|---|---|---|
| #8B0000 | Same color | 7.14AAA | 1.12— | 10.01AAA | 4.73AA |
| #FFD700 | 7.14AAA | Same color | 6.37AA | 1.40— | 1.51— |
| #2F4F4F | 1.12— | 6.37AA | Same color | 8.93AAA | 4.21AA Large |
| #FFFFFF | 10.01AAA | 1.40— | 8.93AAA | Same color | 2.12— |
| #32CD32 | 4.73AA | 1.51— | 4.21AA Large | 2.12— | Same color |
Shades
Shades and tints (50–950)
