PreviewingGo to this paletteOpen in generator
Code
/* Cigar Box Label — colorset.net */
:root {
--color-1: #F4EAD5;
--color-2: #794220;
--color-3: #966B27;
--color-4: #AB413E;
--color-5: #291508;
--color-bg: #F4EAD5;
--color-surface: #F8F2E5;
--color-border: #DDD1B9;
--color-text: #291508;
--color-muted: #7D6455;
--color-primary: #AB413E;
--color-on-primary: #FFFFFF;
--color-accent: #966B27;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #291508;
--color-surface: #352012;
--color-border: #4B3527;
--color-text: #F4EAD5;
--color-muted: #948A77;
--color-primary: #B94D49;
--color-on-primary: #FFFFFF;
--color-accent: #966B27;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #AB413E |
| On primary | derived | derived |
| Accent | from palette · color 3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.59:1 | AAA pass 4.5:1 | |
| Text on surface | 15.62:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.59:1 | AA pass 4.5:1 | |
| Label on primary | 5.90:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.94:1 | AA pass 3:1 | |
| Accent on background | 3.97:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.59:1 | AAA pass 4.5:1 | |
| Text on surface | 12.86:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.11:1 | AA pass 4.5:1 | |
| Label on primary | 4.98:1 | AA pass 4.5:1 | |
| Label on accent | 4.74:1 | AA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 3.68: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 | #F4EAD5 (Text 1) | #794220 (Text 2) | #966B27 (Text 3) | #AB413E (Text 4) | #291508 (Text 5) |
|---|---|---|---|---|---|
| #F4EAD5 | Same color | 6.73AA | 3.97AA Large | 4.94AA | 14.59AAA |
| #794220 | 6.73AA | Same color | 1.69— | 1.36— | 2.17— |
| #966B27 | 3.97AA Large | 1.69— | Same color | 1.25— | 3.68AA Large |
| #AB413E | 4.94AA | 1.36— | 1.25— | Same color | 2.95— |
| #291508 | 14.59AAA | 2.17— | 3.68AA Large | 2.95— | Same color |
Shades
Shades and tints (50–950)
