PreviewingGo to this paletteOpen in generator
Code
/* Vanilla White — colorset.net */
:root {
--color-1: #FFFFEB;
--color-2: #FFFFED;
--color-3: #FFFFEF;
--color-4: #FFFFF1;
--color-5: #FFFFF3;
--color-bg: #FFFFF3;
--color-surface: #F6F6EA;
--color-border: #DDDDCE;
--color-text: #525242;
--color-muted: #70705F;
--color-primary: #8F8F7D;
--color-on-primary: #000000;
--color-accent: #5D5D4F;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #10100B;
--color-surface: #1A1A14;
--color-border: #2F2E26;
--color-text: #FFFFF3;
--color-muted: #909085;
--color-primary: #FFFFEB;
--color-on-primary: #10100B;
--color-accent: #C7C7B7;
--color-on-accent: #10100B;
}
}
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 5 | adjusted for contrast · from #FFFFEB |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFFFEB | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFFFEB | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFFFEB | adjusted for contrast · from #FFFFEB |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.39:1 | AA pass 4.5:1 | |
| Label on accent | 6.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 6.63:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.94:1 | AAA pass 4.5:1 | |
| Text on surface | 17.35:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 18.85:1 | AAA pass 4.5:1 | |
| Label on accent | 11.16:1 | AAA pass 4.5:1 | |
| Primary on background | 18.85:1 | AAA pass 3:1 | |
| Accent on background | 11.16: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 | #FFFFEB (Text 1) | #FFFFED (Text 2) | #FFFFEF (Text 3) | #FFFFF1 (Text 4) | #FFFFF3 (Text 5) |
|---|---|---|---|---|---|
| #FFFFEB | Same color | 1.00— | 1.00— | 1.00— | 1.00— |
| #FFFFED | 1.00— | Same color | 1.00— | 1.00— | 1.00— |
| #FFFFEF | 1.00— | 1.00— | Same color | 1.00— | 1.00— |
| #FFFFF1 | 1.00— | 1.00— | 1.00— | Same color | 1.00— |
| #FFFFF3 | 1.00— | 1.00— | 1.00— | 1.00— | Same color |
Shades
Shades and tints (50–950)
