PreviewingGo to this paletteOpen in generator
Code
/* Shortbread — colorset.net */
:root {
--color-1: #FFFACD;
--color-2: #FFF8DC;
--color-3: #FFEBCD;
--color-4: #F5DEB3;
--color-5: #DEB887;
--color-bg: #F9F7EA;
--color-surface: #EFEEE1;
--color-border: #D7D6C5;
--color-text: #684715;
--color-muted: #796751;
--color-primary: #A48051;
--color-on-primary: #000000;
--color-accent: #6D502A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #170D02;
--color-surface: #221708;
--color-border: #392B19;
--color-text: #FEFAD3;
--color-muted: #908D71;
--color-primary: #DEB887;
--color-on-primary: #170D02;
--color-accent: #F5DEB3;
--color-on-accent: #170D02;
}
}
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 | adjusted for contrast · from #FFF8DC | adjusted for contrast · from #DEB887 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #DEB887 | adjusted for contrast · from #FFFACD |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #DEB887 | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DEB887 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 5.78:1 | AA pass 4.5:1 | |
| Label on accent | 7.42:1 | AAA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 6.89:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.11:1 | AAA pass 4.5:1 | |
| Text on surface | 16.61:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.69:1 | AA pass 4.5:1 | |
| Label on primary | 10.33:1 | AAA pass 4.5:1 | |
| Label on accent | 14.60:1 | AAA pass 4.5:1 | |
| Primary on background | 10.33:1 | AAA pass 3:1 | |
| Accent on background | 14.60: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 | #FFFACD (Text 1) | #FFF8DC (Text 2) | #FFEBCD (Text 3) | #F5DEB3 (Text 4) | #DEB887 (Text 5) |
|---|---|---|---|---|---|
| #FFFACD | Same color | 1.00— | 1.10— | 1.24— | 1.75— |
| #FFF8DC | 1.00— | Same color | 1.09— | 1.23— | 1.74— |
| #FFEBCD | 1.10— | 1.09— | Same color | 1.13— | 1.59— |
| #F5DEB3 | 1.24— | 1.23— | 1.13— | Same color | 1.41— |
| #DEB887 | 1.75— | 1.74— | 1.59— | 1.41— | Same color |
Shades
Shades and tints (50–950)
