PreviewingGo to this paletteOpen in generator
Code
/* Merge Request — colorset.net */
:root {
--color-1: #F7F7FB;
--color-2: #5B4BDB;
--color-3: #1FA971;
--color-4: #CDD2E6;
--color-5: #171A2C;
--color-bg: #F7F7FB;
--color-surface: #EEEEF2;
--color-border: #D5D5DC;
--color-text: #171A2C;
--color-muted: #666B81;
--color-primary: #5B4BDB;
--color-on-primary: #FFFFFF;
--color-accent: #008858;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #171A2C;
--color-surface: #212538;
--color-border: #363A51;
--color-text: #F7F7FB;
--color-muted: #929296;
--color-primary: #685CEC;
--color-on-primary: #FFFFFF;
--color-accent: #1FA971;
--color-on-accent: #171A2C;
}
}
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 #5B4BDB |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #1FA971 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.10:1 | AAA pass 4.5:1 | |
| Text on surface | 14.87:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 6.04:1 | AA pass 4.5:1 | |
| Label on accent | 4.50:1 | AA pass 4.5:1 | |
| Primary on background | 5.66:1 | AA pass 3:1 | |
| Accent on background | 4.21:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.10:1 | AAA pass 4.5:1 | |
| Text on surface | 14.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.55:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.71:1 | AA pass 4.5:1 | |
| Primary on background | 3.55:1 | AA Large pass 3:1 | |
| Accent on background | 5.71: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 | #F7F7FB (Text 1) | #5B4BDB (Text 2) | #1FA971 (Text 3) | #CDD2E6 (Text 4) | #171A2C (Text 5) |
|---|---|---|---|---|---|
| #F7F7FB | Same color | 5.66AA | 2.82— | 1.41— | 16.10AAA |
| #5B4BDB | 5.66AA | Same color | 2.01— | 4.02AA Large | 2.85— |
| #1FA971 | 2.82— | 2.01— | Same color | 2.00— | 5.71AA |
| #CDD2E6 | 1.41— | 4.02AA Large | 2.00— | Same color | 11.44AAA |
| #171A2C | 16.10AAA | 2.85— | 5.71AA | 11.44AAA | Same color |
Shades
Shades and tints (50–950)
