PreviewingGo to this paletteOpen in generator
Code
/* Classical Purple — colorset.net */
:root {
--color-1: #4B0082;
--color-2: #8B008B;
--color-3: #DAA520;
--color-4: #CD853F;
--color-5: #F5F5DC;
--color-bg: #F5F5DC;
--color-surface: #FBFCED;
--color-border: #DDDCC0;
--color-text: #402A5E;
--color-muted: #736A83;
--color-primary: #8B008B;
--color-on-primary: #FFFFFF;
--color-accent: #B28400;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #120B1C;
--color-surface: #1C1527;
--color-border: #31293F;
--color-text: #F5F5DC;
--color-muted: #8B8B74;
--color-primary: #A92FA7;
--color-on-primary: #FFFFFF;
--color-accent: #DAA520;
--color-on-accent: #120B1C;
}
}
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 | 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 #8B008B |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CD853F | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.09:1 | AAA pass 4.5:1 | |
| Text on surface | 11.84:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.61:1 | AA pass 4.5:1 | |
| Label on primary | 8.50:1 | AAA pass 4.5:1 | |
| Label on accent | 6.19:1 | AA pass 4.5:1 | |
| Primary on background | 7.68:1 | AAA pass 3:1 | |
| Accent on background | 3.06:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.40:1 | AAA pass 4.5:1 | |
| Text on surface | 16.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 8.61:1 | AAA pass 4.5:1 | |
| Primary on background | 3.35:1 | AA Large pass 3:1 | |
| Accent on background | 8.61:1 | AAA 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) | #8B008B (Text 2) | #DAA520 (Text 3) | #CD853F (Text 4) | #F5F5DC (Text 5) |
|---|---|---|---|---|---|
| #4B0082 | Same color | 1.52— | 5.79AA | 4.33AA Large | 11.70AAA |
| #8B008B | 1.52— | Same color | 3.80AA Large | 2.84— | 7.68AAA |
| #DAA520 | 5.79AA | 3.80AA Large | Same color | 1.34— | 2.02— |
| #CD853F | 4.33AA Large | 2.84— | 1.34— | Same color | 2.70— |
| #F5F5DC | 11.70AAA | 7.68AAA | 2.02— | 2.70— | Same color |
Shades
Shades and tints (50–950)
