PreviewingGo to this paletteOpen in generator
Code
/* Cream Yellow — colorset.net */
:root {
--color-1: #FFFBEB;
--color-2: #FEF3C7;
--color-3: #FDE68A;
--color-4: #FCD34D;
--color-5: #F59E0B;
--color-bg: #FFFBEB;
--color-surface: #F6F2E2;
--color-border: #DED9C6;
--color-text: #71480A;
--color-muted: #7E6B55;
--color-primary: #C07A00;
--color-on-primary: #000000;
--color-accent: #948A61;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #190C01;
--color-surface: #241606;
--color-border: #3B2A17;
--color-text: #FFFBEB;
--color-muted: #918D7F;
--color-primary: #F59E0B;
--color-on-primary: #190C01;
--color-accent: #FDE68A;
--color-on-accent: #190C01;
}
}
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 #F59E0B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #F59E0B | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F59E0B | from palette · color 5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F59E0B | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.69:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 6.03:1 | AA pass 4.5:1 | |
| Label on accent | 6.07:1 | AA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 3.34:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 18.50:1 | AAA pass 4.5:1 | |
| Text on surface | 16.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.78:1 | AA pass 4.5:1 | |
| Label on primary | 8.93:1 | AAA pass 4.5:1 | |
| Label on accent | 15.41:1 | AAA pass 4.5:1 | |
| Primary on background | 8.93:1 | AAA pass 3:1 | |
| Accent on background | 15.41: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 | #FFFBEB (Text 1) | #FEF3C7 (Text 2) | #FDE68A (Text 3) | #FCD34D (Text 4) | #F59E0B (Text 5) |
|---|---|---|---|---|---|
| #FFFBEB | Same color | 1.07— | 1.20— | 1.39— | 2.07— |
| #FEF3C7 | 1.07— | Same color | 1.12— | 1.29— | 1.93— |
| #FDE68A | 1.20— | 1.12— | Same color | 1.16— | 1.72— |
| #FCD34D | 1.39— | 1.29— | 1.16— | Same color | 1.49— |
| #F59E0B | 2.07— | 1.93— | 1.72— | 1.49— | Same color |
Shades
Shades and tints (50–950)
