PreviewingGo to this paletteOpen in generator
Code
/* Charred Cedar — colorset.net */
:root {
--color-1: #211D1A;
--color-2: #C9A27E;
--color-3: #7E8F6E;
--color-4: #4A423C;
--color-5: #EDE6DB;
--color-bg: #F9F6F3;
--color-surface: #EFEDEA;
--color-border: #D8D4CE;
--color-text: #211D1A;
--color-muted: #6E6966;
--color-primary: #7B8C6B;
--color-on-primary: #211D1A;
--color-accent: #A6805D;
--color-on-accent: #211D1A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #211D1A;
--color-surface: #2C2825;
--color-border: #443D37;
--color-text: #EDE6DB;
--color-muted: #979086;
--color-primary: #7E8F6E;
--color-on-primary: #211D1A;
--color-accent: #C9A27E;
--color-on-accent: #211D1A;
}
}
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 #EDE6DB | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #7E8F6E | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7E8F6E | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.54:1 | AAA pass 4.5:1 | |
| Text on surface | 14.32:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 3.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.50:1 | AAA pass 4.5:1 | |
| Text on surface | 11.79:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.30:1 | AA pass 4.5:1 | |
| Label on primary | 4.81:1 | AA pass 4.5:1 | |
| Label on accent | 7.13:1 | AAA pass 4.5:1 | |
| Primary on background | 4.81:1 | AA pass 3:1 | |
| Accent on background | 7.13: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 | #211D1A (Text 1) | #C9A27E (Text 2) | #7E8F6E (Text 3) | #4A423C (Text 4) | #EDE6DB (Text 5) |
|---|---|---|---|---|---|
| #211D1A | Same color | 7.13AAA | 4.81AA | 1.70— | 13.50AAA |
| #C9A27E | 7.13AAA | Same color | 1.48— | 4.19AA Large | 1.89— |
| #7E8F6E | 4.81AA | 1.48— | Same color | 2.83— | 2.80— |
| #4A423C | 1.70— | 4.19AA Large | 2.83— | Same color | 7.93AAA |
| #EDE6DB | 13.50AAA | 1.89— | 2.80— | 7.93AAA | Same color |
Shades
Shades and tints (50–950)
