PreviewingGo to this paletteOpen in generator
Code
/* Open Weights — colorset.net */
:root {
--color-1: #FAF9F6;
--color-2: #E2553F;
--color-3: #3E7CB1;
--color-4: #EBDDC8;
--color-5: #22201C;
--color-bg: #FAF9F6;
--color-surface: #F1F0ED;
--color-border: #D9D7D1;
--color-text: #22201C;
--color-muted: #6F6D68;
--color-primary: #D0442F;
--color-on-primary: #FFFFFF;
--color-accent: #3B79AE;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #22201C;
--color-surface: #2D2B27;
--color-border: #444039;
--color-text: #FAF9F6;
--color-muted: #979693;
--color-primary: #D0442F;
--color-on-primary: #FFFFFF;
--color-accent: #3B79AE;
--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 | adjusted for contrast · from #E2553F | adjusted for contrast · from #E2553F |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #3E7CB1 | adjusted for contrast · from #3E7CB1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 14.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 4.38:1 | AA Large pass 3:1 | |
| Accent on background | 4.40:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.45:1 | AAA pass 4.5:1 | |
| Text on surface | 13.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.50:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 3.52:1 | AA Large pass 3:1 | |
| Accent on background | 3.51: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 | #FAF9F6 (Text 1) | #E2553F (Text 2) | #3E7CB1 (Text 3) | #EBDDC8 (Text 4) | #22201C (Text 5) |
|---|---|---|---|---|---|
| #FAF9F6 | Same color | 3.56AA Large | 4.22AA Large | 1.27— | 15.45AAA |
| #E2553F | 3.56AA Large | Same color | 1.19— | 2.80— | 4.34AA Large |
| #3E7CB1 | 4.22AA Large | 1.19— | Same color | 3.33AA Large | 3.66AA Large |
| #EBDDC8 | 1.27— | 2.80— | 3.33AA Large | Same color | 12.16AAA |
| #22201C | 15.45AAA | 4.34AA Large | 3.66AA Large | 12.16AAA | Same color |
Shades
Shades and tints (50–950)
