PreviewingGo to this paletteOpen in generator
Code
/* Cherry White — colorset.net */
:root {
--color-1: #FFFFFF;
--color-2: #8B0000;
--color-3: #228B22;
--color-4: #FFD700;
--color-5: #8B4513;
--color-bg: #FFFFFF;
--color-surface: #F6F6F6;
--color-border: #E0DCDD;
--color-text: #70322A;
--color-muted: #886A65;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #8B0000;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402622;
--color-text: #FFFFFF;
--color-muted: #8F8F8F;
--color-primary: #1D881E;
--color-on-primary: #FFFFFF;
--color-accent: #B73A2D;
--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 | adjusted for contrast · from #8B0000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B0000 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #8B4513 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.64:1 | AAA pass 4.5:1 | |
| Text on surface | 8.92:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 10.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.57:1 | AA pass 3:1 | |
| Accent on background | 10.01:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 19.24:1 | AAA pass 4.5:1 | |
| Text on surface | 17.63:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.57:1 | AA pass 4.5:1 | |
| Label on accent | 5.74:1 | AA pass 4.5:1 | |
| Primary on background | 4.21:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #FFFFFF (Text 1) | #8B0000 (Text 2) | #228B22 (Text 3) | #FFD700 (Text 4) | #8B4513 (Text 5) |
|---|---|---|---|---|---|
| #FFFFFF | Same color | 10.01AAA | 4.39AA Large | 1.40— | 7.10AAA |
| #8B0000 | 10.01AAA | Same color | 2.28— | 7.14AAA | 1.41— |
| #228B22 | 4.39AA Large | 2.28— | Same color | 3.13AA Large | 1.62— |
| #FFD700 | 1.40— | 7.14AAA | 3.13AA Large | Same color | 5.06AA |
| #8B4513 | 7.10AAA | 1.41— | 1.62— | 5.06AA | Same color |
Shades
Shades and tints (50–950)
