PreviewingGo to this paletteOpen in generator
Code
/* Golden Custard — colorset.net */
:root {
--color-1: #FFD700;
--color-2: #FFDF33;
--color-3: #FFE766;
--color-4: #FFEF99;
--color-5: #FFF7CC;
--color-bg: #F9F7EB;
--color-surface: #F0EEE1;
--color-border: #D8D5C5;
--color-text: #5E4E00;
--color-muted: #726B51;
--color-primary: #8C7500;
--color-on-primary: #FFFFFF;
--color-accent: #8F8860;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #140F00;
--color-surface: #1E1905;
--color-border: #342E15;
--color-text: #FEF7D1;
--color-muted: #918B70;
--color-primary: #FFD700;
--color-on-primary: #140F00;
--color-accent: #FFEF99;
--color-on-accent: #140F00;
}
}
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 #FFF7CC | adjusted for contrast · from #FFD700 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFD700 | adjusted for contrast · from #FFF7CC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFD700 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFD700 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.61:1 | AAA pass 4.5:1 | |
| Text on surface | 7.02:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.86:1 | AA pass 4.5:1 | |
| Primary on background | 4.19:1 | AA Large pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.70:1 | AAA pass 4.5:1 | |
| Text on surface | 16.25:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.58:1 | AA pass 4.5:1 | |
| Label on primary | 13.63:1 | AAA pass 4.5:1 | |
| Label on accent | 16.45:1 | AAA pass 4.5:1 | |
| Primary on background | 13.63:1 | AAA pass 3:1 | |
| Accent on background | 16.45: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 | #FFD700 (Text 1) | #FFDF33 (Text 2) | #FFE766 (Text 3) | #FFEF99 (Text 4) | #FFF7CC (Text 5) |
|---|---|---|---|---|---|
| #FFD700 | Same color | 1.06— | 1.13— | 1.21— | 1.30— |
| #FFDF33 | 1.06— | Same color | 1.06— | 1.14— | 1.23— |
| #FFE766 | 1.13— | 1.06— | Same color | 1.07— | 1.15— |
| #FFEF99 | 1.21— | 1.14— | 1.07— | Same color | 1.08— |
| #FFF7CC | 1.30— | 1.23— | 1.15— | 1.08— | Same color |
Shades
Shades and tints (50–950)
