PreviewingGo to this paletteOpen in generator
Code
/* Mahogany Chest — colorset.net */
:root {
--color-1: #420D09;
--color-2: #5A2C2C;
--color-3: #8B4513;
--color-4: #A0522D;
--color-5: #C04000;
--color-bg: #FFF4F0;
--color-surface: #FAE9E4;
--color-border: #E4D0C9;
--color-text: #420D09;
--color-muted: #81635E;
--color-primary: #C04000;
--color-on-primary: #FFFFFF;
--color-accent: #5A2C2C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #271311;
--color-border: #3F2623;
--color-text: #C49D90;
--color-muted: #9A7D73;
--color-primary: #C04000;
--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 #C04000 | adjusted for contrast · from #420D09 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #A0522D |
| 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 #A0522D |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.04:1 | AAA pass 4.5:1 | |
| Text on surface | 13.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 5.28:1 | AA pass 4.5:1 | |
| Label on accent | 11.47:1 | AAA pass 4.5:1 | |
| Primary on background | 4.89:1 | AA pass 3:1 | |
| Accent on background | 10.62:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 5.28:1 | AA pass 4.5:1 | |
| Label on accent | 5.87:1 | AA pass 4.5:1 | |
| Primary on background | 3.64: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 | #420D09 (Text 1) | #5A2C2C (Text 2) | #8B4513 (Text 3) | #A0522D (Text 4) | #C04000 (Text 5) |
|---|---|---|---|---|---|
| #420D09 | Same color | 1.42— | 2.29— | 2.89— | 3.07AA Large |
| #5A2C2C | 1.42— | Same color | 1.62— | 2.04— | 2.17— |
| #8B4513 | 2.29— | 1.62— | Same color | 1.26— | 1.34— |
| #A0522D | 2.89— | 2.04— | 1.26— | Same color | 1.06— |
| #C04000 | 3.07AA Large | 2.17— | 1.34— | 1.06— | Same color |
Shades
Shades and tints (50–950)
