PreviewingGo to this paletteOpen in generator
Code
/* Candy Cane Lane — colorset.net */
:root {
--color-1: #FBF7F4;
--color-2: #D62839;
--color-3: #F2B5B5;
--color-4: #3E7C59;
--color-5: #2A1A1C;
--color-bg: #FBF7F4;
--color-surface: #F2EEEB;
--color-border: #DCD4CF;
--color-text: #2A1A1C;
--color-muted: #7A6668;
--color-primary: #D62839;
--color-on-primary: #FFFFFF;
--color-accent: #3E7C59;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1A1C;
--color-surface: #352527;
--color-border: #4E393B;
--color-text: #FBF7F4;
--color-muted: #979491;
--color-primary: #DA2D3C;
--color-on-primary: #FFFFFF;
--color-accent: #417F5C;
--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 2 | adjusted for contrast · from #D62839 |
| On primary | derived | derived |
| Accent | from palette · color 4 | adjusted for contrast · from #3E7C59 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.61:1 | AAA pass 4.5:1 | |
| Text on surface | 14.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.97:1 | AA pass 4.5:1 | |
| Label on accent | 4.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.67:1 | AA pass 3:1 | |
| Accent on background | 4.66:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.61:1 | AAA pass 4.5:1 | |
| Text on surface | 13.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.51:1 | AA pass 4.5:1 | |
| Label on primary | 4.75:1 | AA pass 4.5:1 | |
| Label on accent | 4.76:1 | AA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 3.50: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 | #FBF7F4 (Text 1) | #D62839 (Text 2) | #F2B5B5 (Text 3) | #3E7C59 (Text 4) | #2A1A1C (Text 5) |
|---|---|---|---|---|---|
| #FBF7F4 | Same color | 4.67AA | 1.64— | 4.66AA | 15.61AAA |
| #D62839 | 4.67AA | Same color | 2.85— | 1.00— | 3.34AA Large |
| #F2B5B5 | 1.64— | 2.85— | Same color | 2.85— | 9.54AAA |
| #3E7C59 | 4.66AA | 1.00— | 2.85— | Same color | 3.35AA Large |
| #2A1A1C | 15.61AAA | 3.34AA Large | 9.54AAA | 3.35AA Large | Same color |
Shades
Shades and tints (50–950)
