PreviewingGo to this paletteOpen in generator
Code
/* Mahogany Ember — colorset.net */
:root {
--color-1: #3D0C02;
--color-2: #5D1212;
--color-3: #800000;
--color-4: #A52A2A;
--color-5: #C04A4A;
--color-bg: #FFF4F3;
--color-surface: #FBE9E7;
--color-border: #E5CFCD;
--color-text: #3D0C02;
--color-muted: #81645C;
--color-primary: #C04A4A;
--color-on-primary: #FFFFFF;
--color-accent: #5D1212;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B0A06;
--color-surface: #26140F;
--color-border: #3E2721;
--color-text: #C59B98;
--color-muted: #9B7B79;
--color-primary: #C04A4A;
--color-on-primary: #FFFFFF;
--color-accent: #91584A;
--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 | adjusted for contrast · from #C04A4A | adjusted for contrast · from #3D0C02 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #C04A4A |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #C04A4A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.57:1 | AAA pass 4.5:1 | |
| Text on surface | 14.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 13.46:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 12.49:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.86:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 3.39: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 | #3D0C02 (Text 1) | #5D1212 (Text 2) | #800000 (Text 3) | #A52A2A (Text 4) | #C04A4A (Text 5) |
|---|---|---|---|---|---|
| #3D0C02 | Same color | 1.25— | 1.53— | 2.37— | 3.45AA Large |
| #5D1212 | 1.25— | Same color | 1.23— | 1.90— | 2.77— |
| #800000 | 1.53— | 1.23— | Same color | 1.55— | 2.25— |
| #A52A2A | 2.37— | 1.90— | 1.55— | Same color | 1.46— |
| #C04A4A | 3.45AA Large | 2.77— | 2.25— | 1.46— | Same color |
Shades
Shades and tints (50–950)
