PreviewingGo to this paletteOpen in generator
Code
/* Mahogany Brown — colorset.net */
:root {
--color-1: #420C09;
--color-2: #6B1510;
--color-3: #8E1F18;
--color-4: #B12920;
--color-5: #D43329;
--color-bg: #FFF4F2;
--color-surface: #FBE9E6;
--color-border: #E5CFCC;
--color-text: #420C09;
--color-muted: #80625E;
--color-primary: #D43329;
--color-on-primary: #FFFFFF;
--color-accent: #6B1510;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #271311;
--color-border: #3F2623;
--color-text: #C39A94;
--color-muted: #9A7B76;
--color-primary: #D43329;
--color-on-primary: #FFFFFF;
--color-accent: #91544C;
--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 #D43329 | adjusted for contrast · from #420C09 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #D43329 |
| 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 #B12920 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.12:1 | AAA pass 4.5:1 | |
| Text on surface | 13.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.88:1 | AA pass 4.5:1 | |
| Label on accent | 12.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.52:1 | AA pass 3:1 | |
| Accent on background | 11.19:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.88:1 | AA pass 4.5:1 | |
| Label on accent | 5.87:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.28: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 | #420C09 (Text 1) | #6B1510 (Text 2) | #8E1F18 (Text 3) | #B12920 (Text 4) | #D43329 (Text 5) |
|---|---|---|---|---|---|
| #420C09 | Same color | 1.35— | 1.83— | 2.49— | 3.34AA Large |
| #6B1510 | 1.35— | Same color | 1.36— | 1.84— | 2.47— |
| #8E1F18 | 1.83— | 1.36— | Same color | 1.36— | 1.82— |
| #B12920 | 2.49— | 1.84— | 1.36— | Same color | 1.34— |
| #D43329 | 3.34AA Large | 2.47— | 1.82— | 1.34— | Same color |
Shades
Shades and tints (50–950)
