PreviewingGo to this paletteOpen in generator
Code
/* Mahogany Wood — colorset.net */
:root {
--color-1: #331100;
--color-2: #4D1A00;
--color-3: #662200;
--color-4: #802B00;
--color-5: #993300;
--color-bg: #FFF4F0;
--color-surface: #FAE9E4;
--color-border: #E4D0C9;
--color-text: #331100;
--color-muted: #806659;
--color-primary: #993300;
--color-on-primary: #FFFFFF;
--color-accent: #4D1A00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #331100;
--color-surface: #3F1C08;
--color-border: #4E362A;
--color-text: #D0A99B;
--color-muted: #A6887D;
--color-primary: #B74F27;
--color-on-primary: #FFFFFF;
--color-accent: #906651;
--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 #993300 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #993300 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #993300 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #993300 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.93:1 | AAA pass 4.5:1 | |
| Text on surface | 14.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 7.43:1 | AAA pass 4.5:1 | |
| Label on accent | 14.35:1 | AAA pass 4.5:1 | |
| Primary on background | 6.88:1 | AA pass 3:1 | |
| Accent on background | 13.29:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.05:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 5.05:1 | AA pass 4.5:1 | |
| Label on accent | 4.99:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 3.44: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 | #331100 (Text 1) | #4D1A00 (Text 2) | #662200 (Text 3) | #802B00 (Text 4) | #993300 (Text 5) |
|---|---|---|---|---|---|
| #331100 | Same color | 1.20— | 1.47— | 1.85— | 2.32— |
| #4D1A00 | 1.20— | Same color | 1.23— | 1.55— | 1.93— |
| #662200 | 1.47— | 1.23— | Same color | 1.26— | 1.58— |
| #802B00 | 1.85— | 1.55— | 1.26— | Same color | 1.25— |
| #993300 | 2.32— | 1.93— | 1.58— | 1.25— | Same color |
Shades
Shades and tints (50–950)
