PreviewingGo to this paletteOpen in generator
Code
/* Dark Roast — colorset.net */
:root {
--color-1: #2C1810;
--color-2: #3F251A;
--color-3: #523224;
--color-4: #653F2E;
--color-5: #784C38;
--color-bg: #FFF4F0;
--color-surface: #FAEAE3;
--color-border: #E4D0C8;
--color-text: #2C1810;
--color-muted: #7D645A;
--color-primary: #784C38;
--color-on-primary: #FFFFFF;
--color-accent: #3F251A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2C1810;
--color-surface: #38231A;
--color-border: #50372D;
--color-text: #D1AB9B;
--color-muted: #A78A7D;
--color-primary: #976854;
--color-on-primary: #FFFFFF;
--color-accent: #C89D8B;
--color-on-accent: #2C1810;
}
}
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 #784C38 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #784C38 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #784C38 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #784C38 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.62:1 | AAA pass 4.5:1 | |
| Text on surface | 14.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 7.27:1 | AAA pass 4.5:1 | |
| Label on accent | 14.09:1 | AAA pass 4.5:1 | |
| Primary on background | 6.73:1 | AA pass 3:1 | |
| Accent on background | 13.05:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.04:1 | AAA pass 4.5:1 | |
| Text on surface | 7.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.28:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 6.95:1 | AA pass 4.5:1 | |
| Primary on background | 3.55:1 | AA Large pass 3:1 | |
| Accent on background | 6.95:1 | AA 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 | #2C1810 (Text 1) | #3F251A (Text 2) | #523224 (Text 3) | #653F2E (Text 4) | #784C38 (Text 5) |
|---|---|---|---|---|---|
| #2C1810 | Same color | 1.20— | 1.48— | 1.85— | 2.32— |
| #3F251A | 1.20— | Same color | 1.23— | 1.55— | 1.94— |
| #523224 | 1.48— | 1.23— | Same color | 1.25— | 1.57— |
| #653F2E | 1.85— | 1.55— | 1.25— | Same color | 1.25— |
| #784C38 | 2.32— | 1.94— | 1.57— | 1.25— | Same color |
Shades
Shades and tints (50–950)
