PreviewingGo to this paletteOpen in generator
Code
/* Pearl Diver — colorset.net */
:root {
--color-1: #F6F4F0;
--color-2: #2E6E8E;
--color-3: #C9A86A;
--color-4: #D9E2E6;
--color-5: #1A2530;
--color-bg: #F6F4F0;
--color-surface: #FDFBF9;
--color-border: #DFDBD4;
--color-text: #1A2530;
--color-muted: #626F7D;
--color-primary: #2E6E8E;
--color-on-primary: #FFFFFF;
--color-accent: #A9894C;
--color-on-accent: #1A2530;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1A2530;
--color-surface: #25303C;
--color-border: #384655;
--color-text: #F6F4F0;
--color-muted: #9A9894;
--color-primary: #4180A1;
--color-on-primary: #000000;
--color-accent: #C9A86A;
--color-on-accent: #1A2530;
}
}
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 #2E6E8E |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C9A86A | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 15.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 5.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.71:1 | AA pass 4.5:1 | |
| Primary on background | 5.12:1 | AA pass 3:1 | |
| Accent on background | 3.00:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 12.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.40:1 | AA pass 4.5:1 | |
| Label on primary | 4.83:1 | AA pass 4.5:1 | |
| Label on accent | 6.88:1 | AA pass 4.5:1 | |
| Primary on background | 3.57:1 | AA Large pass 3:1 | |
| Accent on background | 6.88: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 | #F6F4F0 (Text 1) | #2E6E8E (Text 2) | #C9A86A (Text 3) | #D9E2E6 (Text 4) | #1A2530 (Text 5) |
|---|---|---|---|---|---|
| #F6F4F0 | Same color | 5.12AA | 2.06— | 1.20— | 14.15AAA |
| #2E6E8E | 5.12AA | Same color | 2.49— | 4.27AA Large | 2.77— |
| #C9A86A | 2.06— | 2.49— | Same color | 1.72— | 6.88AA |
| #D9E2E6 | 1.20— | 4.27AA Large | 1.72— | Same color | 11.82AAA |
| #1A2530 | 14.15AAA | 2.77— | 6.88AA | 11.82AAA | Same color |
Shades
Shades and tints (50–950)
