PreviewingGo to this paletteOpen in generator
Code
/* Pearl and Noir — colorset.net */
:root {
--color-1: #F4F2EF;
--color-2: #5C4B7A;
--color-3: #B7956B;
--color-4: #DEDBD5;
--color-5: #18171C;
--color-bg: #F4F2EF;
--color-surface: #FBF9F8;
--color-border: #DDD9D3;
--color-text: #18171C;
--color-muted: #6A696F;
--color-primary: #5C4B7A;
--color-on-primary: #FFFFFF;
--color-accent: #A7865C;
--color-on-accent: #18171C;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #18171C;
--color-surface: #222127;
--color-border: #38363F;
--color-text: #F4F2EF;
--color-muted: #8F8D8B;
--color-primary: #766495;
--color-on-primary: #FFFFFF;
--color-accent: #B7956B;
--color-on-accent: #18171C;
}
}
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 | from palette · color 2 | adjusted for contrast · from #5C4B7A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #B7956B | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.95:1 | AAA pass 4.5:1 | |
| Text on surface | 16.98:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.87:1 | AA pass 4.5:1 | |
| Label on primary | 7.66:1 | AAA pass 4.5:1 | |
| Label on accent | 5.27:1 | AA pass 4.5:1 | |
| Primary on background | 6.85:1 | AA pass 3:1 | |
| Accent on background | 3.03: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.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 5.21:1 | AA pass 4.5:1 | |
| Label on accent | 6.39:1 | AA pass 4.5:1 | |
| Primary on background | 3.42:1 | AA Large pass 3:1 | |
| Accent on background | 6.39:1 | AA 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 | #F4F2EF (Text 1) | #5C4B7A (Text 2) | #B7956B (Text 3) | #DEDBD5 (Text 4) | #18171C (Text 5) |
|---|---|---|---|---|---|
| #F4F2EF | Same color | 6.85AA | 2.50— | 1.24— | 15.95AAA |
| #5C4B7A | 6.85AA | Same color | 2.74— | 5.54AA | 2.33— |
| #B7956B | 2.50— | 2.74— | Same color | 2.02— | 6.39AA |
| #DEDBD5 | 1.24— | 5.54AA | 2.02— | Same color | 12.90AAA |
| #18171C | 15.95AAA | 2.33— | 6.39AA | 12.90AAA | Same color |
Shades
Shades and tints (50–950)
