PreviewingGo to this paletteOpen in generator
Code
/* Pearl Sunburst — colorset.net */
:root {
--color-1: #F7F3EA;
--color-2: #4A3B6B;
--color-3: #D1A14B;
--color-4: #DCD4C4;
--color-5: #1E1A24;
--color-bg: #F7F3EA;
--color-surface: #FDFAF5;
--color-border: #E0DACE;
--color-text: #1E1A24;
--color-muted: #706B78;
--color-primary: #B18227;
--color-on-primary: #1E1A24;
--color-accent: #4A3B6B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1E1A24;
--color-surface: #29252F;
--color-border: #3F3947;
--color-text: #F7F3EA;
--color-muted: #949088;
--color-primary: #D1A14B;
--color-on-primary: #1E1A24;
--color-accent: #77689B;
--color-on-accent: #FFFFFF;
}
}
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 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D1A14B | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4A3B6B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.44:1 | AAA pass 4.5:1 | |
| Text on surface | 16.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 4.96:1 | AA pass 4.5:1 | |
| Label on accent | 9.86:1 | AAA pass 4.5:1 | |
| Primary on background | 3.11:1 | AA Large pass 3:1 | |
| Accent on background | 8.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.44:1 | AAA pass 4.5:1 | |
| Text on surface | 13.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.38:1 | AA pass 4.5:1 | |
| Label on primary | 7.25:1 | AAA pass 4.5:1 | |
| Label on accent | 4.96:1 | AA pass 4.5:1 | |
| Primary on background | 7.25:1 | AAA pass 3:1 | |
| Accent on background | 3.45:1 | AA Large 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 | #F7F3EA (Text 1) | #4A3B6B (Text 2) | #D1A14B (Text 3) | #DCD4C4 (Text 4) | #1E1A24 (Text 5) |
|---|---|---|---|---|---|
| #F7F3EA | Same color | 8.91AAA | 2.13— | 1.33— | 15.44AAA |
| #4A3B6B | 8.91AAA | Same color | 4.19AA Large | 6.70AA | 1.73— |
| #D1A14B | 2.13— | 4.19AA Large | Same color | 1.60— | 7.25AAA |
| #DCD4C4 | 1.33— | 6.70AA | 1.60— | Same color | 11.61AAA |
| #1E1A24 | 15.44AAA | 1.73— | 7.25AAA | 11.61AAA | Same color |
Shades
Shades and tints (50–950)
