PreviewingGo to this paletteOpen in generator
Code
/* Straw Light — colorset.net */
:root {
--color-1: #F5F1B2;
--color-2: #F8F4C2;
--color-3: #FBF7D2;
--color-4: #FEFAE2;
--color-5: #FFFFF2;
--color-bg: #FFFFF2;
--color-surface: #F6F6E9;
--color-border: #DDDDCD;
--color-text: #585416;
--color-muted: #727156;
--color-primary: #928E52;
--color-on-primary: #000000;
--color-accent: #8F8F83;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121001;
--color-surface: #1C1A08;
--color-border: #312F18;
--color-text: #FFFFF2;
--color-muted: #909084;
--color-primary: #F5F1B2;
--color-on-primary: #121001;
--color-accent: #BCB986;
--color-on-accent: #121001;
}
}
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 #F5F1B2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F5F1B2 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F5F1B2 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F5F1B2 | adjusted for contrast · from #F5F1B2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.73:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 6.21:1 | AA pass 4.5:1 | |
| Label on accent | 6.42:1 | AA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 3.24:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.94:1 | AAA pass 4.5:1 | |
| Text on surface | 17.36:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.92:1 | AA pass 4.5:1 | |
| Label on primary | 16.46:1 | AAA pass 4.5:1 | |
| Label on accent | 9.47:1 | AAA pass 4.5:1 | |
| Primary on background | 16.46:1 | AAA pass 3:1 | |
| Accent on background | 9.47: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 | #F5F1B2 (Text 1) | #F8F4C2 (Text 2) | #FBF7D2 (Text 3) | #FEFAE2 (Text 4) | #FFFFF2 (Text 5) |
|---|---|---|---|---|---|
| #F5F1B2 | Same color | 1.03— | 1.07— | 1.10— | 1.15— |
| #F8F4C2 | 1.03— | Same color | 1.03— | 1.07— | 1.11— |
| #FBF7D2 | 1.07— | 1.03— | Same color | 1.03— | 1.08— |
| #FEFAE2 | 1.10— | 1.07— | 1.03— | Same color | 1.04— |
| #FFFFF2 | 1.15— | 1.11— | 1.08— | 1.04— | Same color |
Shades
Shades and tints (50–950)
