PreviewingGo to this paletteOpen in generator
Code
/* Imperial Topaz — colorset.net */
:root {
--color-1: #D4AF37;
--color-2: #E6C35C;
--color-3: #F4D878;
--color-4: #FFE699;
--color-5: #FFF4CC;
--color-bg: #FAF7EB;
--color-surface: #F1EEE2;
--color-border: #D9D5C6;
--color-text: #614C00;
--color-muted: #736A51;
--color-primary: #907300;
--color-on-primary: #FFFFFF;
--color-accent: #928863;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #150F00;
--color-surface: #1F1905;
--color-border: #352D15;
--color-text: #FFF4CC;
--color-muted: #918A6E;
--color-primary: #D4AF37;
--color-on-primary: #150F00;
--color-accent: #FFE699;
--color-on-accent: #150F00;
}
}
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 #FFF4CC | adjusted for contrast · from #D4AF37 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #D4AF37 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D4AF37 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #D4AF37 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.70:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 5.92:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.33:1 | AAA pass 4.5:1 | |
| Text on surface | 15.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.51:1 | AA pass 4.5:1 | |
| Label on primary | 9.08:1 | AAA pass 4.5:1 | |
| Label on accent | 15.48:1 | AAA pass 4.5:1 | |
| Primary on background | 9.08:1 | AAA pass 3:1 | |
| Accent on background | 15.48: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 | #D4AF37 (Text 1) | #E6C35C (Text 2) | #F4D878 (Text 3) | #FFE699 (Text 4) | #FFF4CC (Text 5) |
|---|---|---|---|---|---|
| #D4AF37 | Same color | 1.23— | 1.50— | 1.71— | 1.91— |
| #E6C35C | 1.23— | Same color | 1.21— | 1.38— | 1.55— |
| #F4D878 | 1.50— | 1.21— | Same color | 1.14— | 1.28— |
| #FFE699 | 1.71— | 1.38— | 1.14— | Same color | 1.12— |
| #FFF4CC | 1.91— | 1.55— | 1.28— | 1.12— | Same color |
Shades
Shades and tints (50–950)
