PreviewingGo to this paletteOpen in generator
Code
/* Sunbeam Yellow — colorset.net */
:root {
--color-1: #E6B800;
--color-2: #F2C500;
--color-3: #FFD200;
--color-4: #FFDF00;
--color-5: #FFEC80;
--color-bg: #FAF7E8;
--color-surface: #F0EEDF;
--color-border: #D8D6C3;
--color-text: #5F4B00;
--color-muted: #736950;
--color-primary: #A78500;
--color-on-primary: #000000;
--color-accent: #877500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150E00;
--color-surface: #201905;
--color-border: #352D15;
--color-text: #F2EBC5;
--color-muted: #8A856A;
--color-primary: #E6B800;
--color-on-primary: #150E00;
--color-accent: #FFEC80;
--color-on-accent: #150E00;
}
}
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 #FFEC80 | adjusted for contrast · from #E6B800 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #E6B800 | adjusted for contrast · from #FFEC80 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #E6B800 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E6B800 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 6.00:1 | AA pass 4.5:1 | |
| Label on accent | 4.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.26:1 | AA Large pass 3:1 | |
| Accent on background | 4.27:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.95:1 | AAA pass 4.5:1 | |
| Text on surface | 14.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 10.25:1 | AAA pass 4.5:1 | |
| Label on accent | 16.04:1 | AAA pass 4.5:1 | |
| Primary on background | 10.25:1 | AAA pass 3:1 | |
| Accent on background | 16.04: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 | #E6B800 (Text 1) | #F2C500 (Text 2) | #FFD200 (Text 3) | #FFDF00 (Text 4) | #FFEC80 (Text 5) |
|---|---|---|---|---|---|
| #E6B800 | Same color | 1.14— | 1.29— | 1.41— | 1.57— |
| #F2C500 | 1.14— | Same color | 1.13— | 1.24— | 1.38— |
| #FFD200 | 1.29— | 1.13— | Same color | 1.09— | 1.21— |
| #FFDF00 | 1.41— | 1.24— | 1.09— | Same color | 1.11— |
| #FFEC80 | 1.57— | 1.38— | 1.21— | 1.11— | Same color |
Shades
Shades and tints (50–950)
