PreviewingGo to this paletteOpen in generator
Code
/* Blackberry Cream — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #6A0DAD;
--color-3: #8B008B;
--color-4: #9370DB;
--color-5: #D8BFD8;
--color-bg: #FCF4FC;
--color-surface: #F2EBF2;
--color-border: #DBD1DB;
--color-text: #402A5E;
--color-muted: #6F667E;
--color-primary: #6A0DAD;
--color-on-primary: #FFFFFF;
--color-accent: #8B008B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #D8BFD8;
--color-muted: #8F7A8F;
--color-primary: #8A3ED2;
--color-on-primary: #FFFFFF;
--color-accent: #A92FA7;
--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 | adjusted for contrast · from #D8BFD8 | adjusted for contrast · from #4B0082 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4B0082 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #9370DB |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #8B008B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.39:1 | AAA pass 4.5:1 | |
| Text on surface | 10.49:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 9.24:1 | AAA pass 4.5:1 | |
| Label on accent | 8.50:1 | AAA pass 4.5:1 | |
| Primary on background | 8.57:1 | AAA pass 3:1 | |
| Accent on background | 7.89:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.34:1 | AAA pass 4.5:1 | |
| Text on surface | 10.43:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.91:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 3.39:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #4B0082 (Text 1) | #6A0DAD (Text 2) | #8B008B (Text 3) | #9370DB (Text 4) | #D8BFD8 (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.40— | 1.52— | 3.44AA Large | 7.62AAA |
| #6A0DAD | 1.40— | Same color | 1.09— | 2.45— | 5.44AA |
| #8B008B | 1.52— | 1.09— | Same color | 2.26— | 5.00AA |
| #9370DB | 3.44AA Large | 2.45— | 2.26— | Same color | 2.22— |
| #D8BFD8 | 7.62AAA | 5.44AA | 5.00AA | 2.22— | Same color |
Shades
Shades and tints (50–950)
