PreviewingGo to this paletteOpen in generator
Code
/* Dusk Cabin — colorset.net */
:root {
--color-1: #262A2E;
--color-2: #C7A27C;
--color-3: #6FA39A;
--color-4: #4D5359;
--color-5: #ECE7DF;
--color-bg: #F8F6F4;
--color-surface: #EFEDEB;
--color-border: #D8D4CF;
--color-text: #262A2E;
--color-muted: #666A6F;
--color-primary: #5D9188;
--color-on-primary: #000000;
--color-accent: #A4805B;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1011;
--color-surface: #181A1B;
--color-border: #2A2E32;
--color-text: #ECE7DF;
--color-muted: #87837B;
--color-primary: #6FA39A;
--color-on-primary: #0E1011;
--color-accent: #C7A27C;
--color-on-accent: #0E1011;
}
}
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 #ECE7DF | adjusted for contrast · from #262A2E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #6FA39A | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C7A27C | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.41:1 | AAA pass 4.5:1 | |
| Text on surface | 12.38:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 5.82:1 | AA pass 4.5:1 | |
| Primary on background | 3.32:1 | AA Large pass 3:1 | |
| Accent on background | 3.35:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.50:1 | AAA pass 4.5:1 | |
| Text on surface | 14.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 6.70:1 | AA pass 4.5:1 | |
| Label on accent | 8.07:1 | AAA pass 4.5:1 | |
| Primary on background | 6.70:1 | AA pass 3:1 | |
| Accent on background | 8.07: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 | #262A2E (Text 1) | #C7A27C (Text 2) | #6FA39A (Text 3) | #4D5359 (Text 4) | #ECE7DF (Text 5) |
|---|---|---|---|---|---|
| #262A2E | Same color | 6.12AA | 5.08AA | 1.86— | 11.74AAA |
| #C7A27C | 6.12AA | Same color | 1.20— | 3.30AA Large | 1.92— |
| #6FA39A | 5.08AA | 1.20— | Same color | 2.74— | 2.31— |
| #4D5359 | 1.86— | 3.30AA Large | 2.74— | Same color | 6.33AA |
| #ECE7DF | 11.74AAA | 1.92— | 2.31— | 6.33AA | Same color |
Shades
Shades and tints (50–950)
