PreviewingGo to this paletteOpen in generator
Code
/* Soft Drink Can — colorset.net */
:root {
--color-1: #FFF0E8;
--color-2: #FF8B6A;
--color-3: #7AA6FF;
--color-4: #FFD3C2;
--color-5: #2C2440;
--color-bg: #FFF0E8;
--color-surface: #FFF9F6;
--color-border: #E9D6CD;
--color-text: #2C2440;
--color-muted: #706A84;
--color-primary: #DC6C4C;
--color-on-primary: #000000;
--color-accent: #608AE0;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100E17;
--color-surface: #1A1822;
--color-border: #2F2B39;
--color-text: #FFF0E8;
--color-muted: #94867F;
--color-primary: #FF8B6A;
--color-on-primary: #100E17;
--color-accent: #7AA6FF;
--color-on-accent: #100E17;
}
}
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 | adjusted for contrast · from #2C2440 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF8B6A | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #7AA6FF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.17:1 | AAA pass 4.5:1 | |
| Text on surface | 14.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.62:1 | AA pass 4.5:1 | |
| Label on primary | 6.29:1 | AA pass 4.5:1 | |
| Label on accent | 6.21:1 | AA pass 4.5:1 | |
| Primary on background | 3.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.21:1 | AAA pass 4.5:1 | |
| Text on surface | 15.76:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.45:1 | AA pass 4.5:1 | |
| Label on primary | 8.34:1 | AAA pass 4.5:1 | |
| Label on accent | 7.95:1 | AAA pass 4.5:1 | |
| Primary on background | 8.34:1 | AAA pass 3:1 | |
| Accent on background | 7.95: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 | #FFF0E8 (Text 1) | #FF8B6A (Text 2) | #7AA6FF (Text 3) | #FFD3C2 (Text 4) | #2C2440 (Text 5) |
|---|---|---|---|---|---|
| #FFF0E8 | Same color | 2.06— | 2.16— | 1.23— | 13.17AAA |
| #FF8B6A | 2.06— | Same color | 1.05— | 1.68— | 6.39AA |
| #7AA6FF | 2.16— | 1.05— | Same color | 1.76— | 6.09AA |
| #FFD3C2 | 1.23— | 1.68— | 1.76— | Same color | 10.71AAA |
| #2C2440 | 13.17AAA | 6.39AA | 6.09AA | 10.71AAA | Same color |
Shades
Shades and tints (50–950)
