PreviewingGo to this paletteOpen in generator
Code
/* Secret Admirer Note — colorset.net */
:root {
--color-1: #F5EEF8;
--color-2: #9B5DE5;
--color-3: #F15BB5;
--color-4: #C8B6E2;
--color-5: #2A1B3D;
--color-bg: #F5EEF8;
--color-surface: #FBF6FC;
--color-border: #DED4E1;
--color-text: #2A1B3D;
--color-muted: #716780;
--color-primary: #9253DB;
--color-on-primary: #FFFFFF;
--color-accent: #E651AC;
--color-on-accent: #2A1B3D;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1B3D;
--color-surface: #352649;
--color-border: #494057;
--color-text: #F5EEF8;
--color-muted: #9A949D;
--color-primary: #9B5DE5;
--color-on-primary: #000000;
--color-accent: #F15BB5;
--color-on-accent: #2A1B3D;
}
}
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 #9B5DE5 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F15BB5 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.96:1 | AAA pass 4.5:1 | |
| Text on surface | 14.89:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.67:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 4.12:1 | AA Large pass 3:1 | |
| Accent on background | 3.01:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.96:1 | AAA pass 4.5:1 | |
| Text on surface | 12.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.37:1 | AA pass 4.5:1 | |
| Label on primary | 5.09:1 | AA pass 4.5:1 | |
| Label on accent | 5.22:1 | AA pass 4.5:1 | |
| Primary on background | 3.85:1 | AA Large pass 3:1 | |
| Accent on background | 5.22: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 | #F5EEF8 (Text 1) | #9B5DE5 (Text 2) | #F15BB5 (Text 3) | #C8B6E2 (Text 4) | #2A1B3D (Text 5) |
|---|---|---|---|---|---|
| #F5EEF8 | Same color | 3.63AA Large | 2.68— | 1.64— | 13.96AAA |
| #9B5DE5 | 3.63AA Large | Same color | 1.36— | 2.21— | 3.85AA Large |
| #F15BB5 | 2.68— | 1.36— | Same color | 1.63— | 5.22AA |
| #C8B6E2 | 1.64— | 2.21— | 1.63— | Same color | 8.50AAA |
| #2A1B3D | 13.96AAA | 3.85AA Large | 5.22AA | 8.50AAA | Same color |
Shades
Shades and tints (50–950)
