PreviewingGo to this paletteOpen in generator
Code
/* Croissant Gold — colorset.net */
:root {
--color-1: #FFF9EE;
--color-2: #F8AE00;
--color-3: #7B4436;
--color-4: #FADA99;
--color-5: #302017;
--color-bg: #FFF9EE;
--color-surface: #F6F0E5;
--color-border: #DED7C9;
--color-text: #302017;
--color-muted: #7C685E;
--color-primary: #B88000;
--color-on-primary: #302017;
--color-accent: #7B4436;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140E0B;
--color-surface: #1E1815;
--color-border: #352C26;
--color-text: #FFF9EE;
--color-muted: #918C82;
--color-primary: #F8AE00;
--color-on-primary: #140E0B;
--color-accent: #915849;
--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 #302017 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F8AE00 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #7B4436 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.90:1 | AAA pass 4.5:1 | |
| Text on surface | 13.77:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.56:1 | AA pass 4.5:1 | |
| Label on accent | 7.71:1 | AAA pass 4.5:1 | |
| Primary on background | 3.27:1 | AA Large pass 3:1 | |
| Accent on background | 7.36:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.26:1 | AAA pass 4.5:1 | |
| Text on surface | 16.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.72:1 | AA pass 4.5:1 | |
| Label on primary | 10.07:1 | AAA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 10.07:1 | AAA pass 3:1 | |
| Accent on background | 3.37: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 | #FFF9EE (Text 1) | #F8AE00 (Text 2) | #7B4436 (Text 3) | #FADA99 (Text 4) | #302017 (Text 5) |
|---|---|---|---|---|---|
| #FFF9EE | Same color | 1.81— | 7.36AAA | 1.29— | 14.90AAA |
| #F8AE00 | 1.81— | Same color | 4.06AA Large | 1.41— | 8.21AAA |
| #7B4436 | 7.36AAA | 4.06AA Large | Same color | 5.71AA | 2.02— |
| #FADA99 | 1.29— | 1.41— | 5.71AA | Same color | 11.57AAA |
| #302017 | 14.90AAA | 8.21AAA | 2.02— | 11.57AAA | Same color |
Shades
Shades and tints (50–950)
