PreviewingGo to this paletteOpen in generator
Code
/* Mahogany Bookcase — colorset.net */
:root {
--color-1: #160703;
--color-2: #54220F;
--color-3: #8F4622;
--color-4: #D5B36A;
--color-5: #EFE3CF;
--color-bg: #FAF6F0;
--color-surface: #F1EDE7;
--color-border: #DAD4CB;
--color-text: #160703;
--color-muted: #725D55;
--color-primary: #8F4622;
--color-on-primary: #FFFFFF;
--color-accent: #A5843B;
--color-on-accent: #160703;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160703;
--color-surface: #21110A;
--color-border: #38231B;
--color-text: #EFE3CF;
--color-muted: #897E6C;
--color-primary: #994F2B;
--color-on-primary: #FFFFFF;
--color-accent: #D5B36A;
--color-on-accent: #160703;
}
}
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 #EFE3CF | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #8F4622 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D5B36A | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.30:1 | AAA pass 4.5:1 | |
| Text on surface | 16.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.72:1 | AA pass 4.5:1 | |
| Label on primary | 6.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.60:1 | AA pass 4.5:1 | |
| Primary on background | 6.36:1 | AA pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.54:1 | AAA pass 4.5:1 | |
| Text on surface | 14.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 5.99:1 | AA pass 4.5:1 | |
| Label on accent | 9.84:1 | AAA pass 4.5:1 | |
| Primary on background | 3.29:1 | AA Large pass 3:1 | |
| Accent on background | 9.84:1 | AAA 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 | #160703 (Text 1) | #54220F (Text 2) | #8F4622 (Text 3) | #D5B36A (Text 4) | #EFE3CF (Text 5) |
|---|---|---|---|---|---|
| #160703 | Same color | 1.51— | 2.88— | 9.84AAA | 15.54AAA |
| #54220F | 1.51— | Same color | 1.90— | 6.50AA | 10.27AAA |
| #8F4622 | 2.88— | 1.90— | Same color | 3.42AA Large | 5.40AA |
| #D5B36A | 9.84AAA | 6.50AA | 3.42AA Large | Same color | 1.58— |
| #EFE3CF | 15.54AAA | 10.27AAA | 5.40AA | 1.58— | Same color |
Shades
Shades and tints (50–950)
