PreviewingGo to this paletteOpen in generator
Code
/* Cocktail Card — colorset.net */
:root {
--color-1: #F3EBDD;
--color-2: #23465E;
--color-3: #C58E3B;
--color-4: #D8C7A6;
--color-5: #18181A;
--color-bg: #F3EBDD;
--color-surface: #F7F3EA;
--color-border: #DCD2C1;
--color-text: #18181A;
--color-muted: #68686A;
--color-primary: #9F6A03;
--color-on-primary: #FFFFFF;
--color-accent: #23465E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #18181A;
--color-surface: #222225;
--color-border: #37373C;
--color-text: #F3EBDD;
--color-muted: #918A7D;
--color-primary: #C58E3B;
--color-on-primary: #18181A;
--color-accent: #4C708A;
--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 | adjusted for contrast · from #C58E3B | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #23465E |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.98:1 | AAA pass 4.5:1 | |
| Text on surface | 16.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.70:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 9.96:1 | AAA pass 4.5:1 | |
| Primary on background | 3.91:1 | AA Large pass 3:1 | |
| Accent on background | 8.41:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.98:1 | AAA pass 4.5:1 | |
| Text on surface | 13.40:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.18:1 | AA pass 4.5:1 | |
| Label on primary | 6.17:1 | AA pass 4.5:1 | |
| Label on accent | 5.26:1 | AA pass 4.5:1 | |
| Primary on background | 6.17:1 | AA pass 3:1 | |
| Accent on background | 3.37: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 | #F3EBDD (Text 1) | #23465E (Text 2) | #C58E3B (Text 3) | #D8C7A6 (Text 4) | #18181A (Text 5) |
|---|---|---|---|---|---|
| #F3EBDD | Same color | 8.41AAA | 2.43— | 1.40— | 14.98AAA |
| #23465E | 8.41AAA | Same color | 3.46AA Large | 5.99AA | 1.78— |
| #C58E3B | 2.43— | 3.46AA Large | Same color | 1.73— | 6.17AA |
| #D8C7A6 | 1.40— | 5.99AA | 1.73— | Same color | 10.67AAA |
| #18181A | 14.98AAA | 1.78— | 6.17AA | 10.67AAA | Same color |
Shades
Shades and tints (50–950)
