PreviewingGo to this paletteOpen in generator
Code
/* Peacock Throne — colorset.net */
:root {
--color-1: #0F2027;
--color-2: #0E7C7B;
--color-3: #5B2A86;
--color-4: #E0A526;
--color-5: #F1EFE6;
--color-bg: #F1EFE6;
--color-surface: #F7F6F1;
--color-border: #D9D6CA;
--color-text: #0F2027;
--color-muted: #5A6E76;
--color-primary: #5B2A86;
--color-on-primary: #FFFFFF;
--color-accent: #9A6E00;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F2027;
--color-surface: #1A2B32;
--color-border: #2C414A;
--color-text: #F1EFE6;
--color-muted: #918F87;
--color-primary: #8C5DBC;
--color-on-primary: #FFFFFF;
--color-accent: #E0A526;
--color-on-accent: #0F2027;
}
}
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 #5B2A86 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #0E7C7B | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.51:1 | AAA pass 4.5:1 | |
| Text on surface | 15.45:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.64:1 | AA pass 4.5:1 | |
| Label on primary | 9.90:1 | AAA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 8.60:1 | AAA pass 3:1 | |
| Accent on background | 3.96:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.51:1 | AAA pass 4.5:1 | |
| Text on surface | 12.70:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 4.77:1 | AA pass 4.5:1 | |
| Label on accent | 7.63:1 | AAA pass 4.5:1 | |
| Primary on background | 3.51:1 | AA Large pass 3:1 | |
| Accent on background | 7.63: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 | #0F2027 (Text 1) | #0E7C7B (Text 2) | #5B2A86 (Text 3) | #E0A526 (Text 4) | #F1EFE6 (Text 5) |
|---|---|---|---|---|---|
| #0F2027 | Same color | 3.33AA Large | 1.69— | 7.63AAA | 14.51AAA |
| #0E7C7B | 3.33AA Large | Same color | 1.98— | 2.29— | 4.35AA Large |
| #5B2A86 | 1.69— | 1.98— | Same color | 4.52AA | 8.60AAA |
| #E0A526 | 7.63AAA | 2.29— | 4.52AA | Same color | 1.90— |
| #F1EFE6 | 14.51AAA | 4.35AA Large | 8.60AAA | 1.90— | Same color |
Shades
Shades and tints (50–950)
