PreviewingGo to this paletteOpen in generator
Code
/* Amber Nectar — colorset.net */
:root {
--color-1: #FFBF00;
--color-2: #FFCB2F;
--color-3: #FFD75E;
--color-4: #FFE38D;
--color-5: #FFEFBC;
--color-bg: #FBF7E8;
--color-surface: #F2EDDF;
--color-border: #DAD5C3;
--color-text: #634800;
--color-muted: #756850;
--color-primary: #987000;
--color-on-primary: #FFFFFF;
--color-accent: #958657;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #160E00;
--color-surface: #211805;
--color-border: #372C15;
--color-text: #FBEFCA;
--color-muted: #90876C;
--color-primary: #FFBF00;
--color-on-primary: #160E00;
--color-accent: #FFE38D;
--color-on-accent: #160E00;
}
}
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 #FFEFBC | adjusted for contrast · from #FFBF00 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FFBF00 | adjusted for contrast · from #FFEFBC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FFBF00 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFBF00 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.96:1 | AAA pass 4.5:1 | |
| Text on surface | 7.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.51:1 | AA pass 4.5:1 | |
| Label on accent | 5.83:1 | AA pass 4.5:1 | |
| Primary on background | 4.21:1 | AA Large pass 3:1 | |
| Accent on background | 3.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.68:1 | AAA pass 4.5:1 | |
| Text on surface | 15.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.35:1 | AA pass 4.5:1 | |
| Label on primary | 11.58:1 | AAA pass 4.5:1 | |
| Label on accent | 15.16:1 | AAA pass 4.5:1 | |
| Primary on background | 11.58:1 | AAA pass 3:1 | |
| Accent on background | 15.16: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 | #FFBF00 (Text 1) | #FFCB2F (Text 2) | #FFD75E (Text 3) | #FFE38D (Text 4) | #FFEFBC (Text 5) |
|---|---|---|---|---|---|
| #FFBF00 | Same color | 1.09— | 1.19— | 1.31— | 1.44— |
| #FFCB2F | 1.09— | Same color | 1.09— | 1.20— | 1.32— |
| #FFD75E | 1.19— | 1.09— | Same color | 1.10— | 1.21— |
| #FFE38D | 1.31— | 1.20— | 1.10— | Same color | 1.10— |
| #FFEFBC | 1.44— | 1.32— | 1.21— | 1.10— | Same color |
Shades
Shades and tints (50–950)
