PreviewingGo to this paletteOpen in generator
Code
/* Vanilla Page — colorset.net */
:root {
--color-1: #FBF9ED;
--color-2: #F8F2DC;
--color-3: #F1E4BF;
--color-4: #C3E2BC;
--color-5: #566039;
--color-bg: #FBF9ED;
--color-surface: #F2F0E4;
--color-border: #DAD7C8;
--color-text: #48522C;
--color-muted: #676E54;
--color-primary: #566039;
--color-on-primary: #FFFFFF;
--color-accent: #948866;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1106;
--color-surface: #181B0E;
--color-border: #2C3020;
--color-text: #FBF9ED;
--color-muted: #8E8C82;
--color-primary: #616B44;
--color-on-primary: #FFFFFF;
--color-accent: #F1E4BF;
--color-on-accent: #0E1106;
}
}
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 #566039 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #566039 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #566039 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #566039 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 6.71:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 6.35:1 | AA pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.04:1 | AAA pass 4.5:1 | |
| Text on surface | 16.54:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.65:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 15.06:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 15.06: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 | #FBF9ED (Text 1) | #F8F2DC (Text 2) | #F1E4BF (Text 3) | #C3E2BC (Text 4) | #566039 (Text 5) |
|---|---|---|---|---|---|
| #FBF9ED | Same color | 1.06— | 1.20— | 1.33— | 6.35AA |
| #F8F2DC | 1.06— | Same color | 1.13— | 1.25— | 5.99AA |
| #F1E4BF | 1.20— | 1.13— | Same color | 1.11— | 5.30AA |
| #C3E2BC | 1.33— | 1.25— | 1.11— | Same color | 4.77AA |
| #566039 | 6.35AA | 5.99AA | 5.30AA | 4.77AA | Same color |
Shades
Shades and tints (50–950)
