PreviewingGo to this paletteOpen in generator
Code
/* Sapphire Gala — colorset.net */
:root {
--color-1: #0E1430;
--color-2: #1F4FBF;
--color-3: #C2185B;
--color-4: #E0B84C;
--color-5: #F0EEF6;
--color-bg: #F0EEF6;
--color-surface: #F7F6FB;
--color-border: #D8D5E0;
--color-text: #0E1430;
--color-muted: #606780;
--color-primary: #C2185B;
--color-on-primary: #FFFFFF;
--color-accent: #1F4FBF;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1430;
--color-surface: #181F3C;
--color-border: #2F354B;
--color-text: #F0EEF6;
--color-muted: #8C8A92;
--color-primary: #CD2763;
--color-on-primary: #FFFFFF;
--color-accent: #3265D7;
--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 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #C2185B |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #1F4FBF |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.73:1 | AAA pass 4.5:1 | |
| Text on surface | 16.82:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.87:1 | AA pass 4.5:1 | |
| Label on primary | 5.87:1 | AA pass 4.5:1 | |
| Label on accent | 7.17:1 | AAA pass 4.5:1 | |
| Primary on background | 5.11:1 | AA pass 3:1 | |
| Accent on background | 6.24:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.73:1 | AAA pass 4.5:1 | |
| Text on surface | 14.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 5.16:1 | AA pass 4.5:1 | |
| Label on accent | 5.28:1 | AA pass 4.5:1 | |
| Primary on background | 3.50:1 | AA Large pass 3:1 | |
| Accent on background | 3.43: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 | #0E1430 (Text 1) | #1F4FBF (Text 2) | #C2185B (Text 3) | #E0B84C (Text 4) | #F0EEF6 (Text 5) |
|---|---|---|---|---|---|
| #0E1430 | Same color | 2.52— | 3.08AA Large | 9.58AAA | 15.73AAA |
| #1F4FBF | 2.52— | Same color | 1.22— | 3.80AA Large | 6.24AA |
| #C2185B | 3.08AA Large | 1.22— | Same color | 3.11AA Large | 5.11AA |
| #E0B84C | 9.58AAA | 3.80AA Large | 3.11AA Large | Same color | 1.64— |
| #F0EEF6 | 15.73AAA | 6.24AA | 5.11AA | 1.64— | Same color |
Shades
Shades and tints (50–950)
