PreviewingGo to this paletteOpen in generator
Code
/* Candy Corn Stack — colorset.net */
:root {
--color-1: #FFF8E7;
--color-2: #F7C948;
--color-3: #F2811D;
--color-4: #6B4226;
--color-5: #2B1A12;
--color-bg: #FFF8E7;
--color-surface: #F6EFDE;
--color-border: #DED6C2;
--color-text: #2B1A12;
--color-muted: #7C665D;
--color-primary: #D66E00;
--color-on-primary: #2B1A12;
--color-accent: #AA8500;
--color-on-accent: #2B1A12;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2B1A12;
--color-surface: #37251C;
--color-border: #4F392F;
--color-text: #FFF8E7;
--color-muted: #9B9485;
--color-primary: #F2811D;
--color-on-primary: #2B1A12;
--color-accent: #F7C948;
--color-on-accent: #2B1A12;
}
}
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 #F2811D | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F2811D | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.75:1 | AAA pass 4.5:1 | |
| Text on surface | 14.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 4.84:1 | AA pass 4.5:1 | |
| Label on accent | 4.82:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 3.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.75:1 | AAA pass 4.5:1 | |
| Text on surface | 13.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.53:1 | AA pass 4.5:1 | |
| Label on primary | 6.30:1 | AA pass 4.5:1 | |
| Label on accent | 10.64:1 | AAA pass 4.5:1 | |
| Primary on background | 6.30:1 | AA pass 3:1 | |
| Accent on background | 10.64: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 | #FFF8E7 (Text 1) | #F7C948 (Text 2) | #F2811D (Text 3) | #6B4226 (Text 4) | #2B1A12 (Text 5) |
|---|---|---|---|---|---|
| #FFF8E7 | Same color | 1.48— | 2.50— | 8.15AAA | 15.75AAA |
| #F7C948 | 1.48— | Same color | 1.69— | 5.51AA | 10.64AAA |
| #F2811D | 2.50— | 1.69— | Same color | 3.26AA Large | 6.30AA |
| #6B4226 | 8.15AAA | 5.51AA | 3.26AA Large | Same color | 1.93— |
| #2B1A12 | 15.75AAA | 10.64AAA | 6.30AA | 1.93— | Same color |
Shades
Shades and tints (50–950)
