PreviewingGo to this paletteOpen in generator
Code
/* Royal Jewel Box — colorset.net */
:root {
--color-1: #1B0F2B;
--color-2: #8E24AA;
--color-3: #00897B;
--color-4: #FFB300;
--color-5: #F5EEF8;
--color-bg: #F5EEF8;
--color-surface: #FBF6FC;
--color-border: #DED4E1;
--color-text: #1B0F2B;
--color-muted: #6C647C;
--color-primary: #8E24AA;
--color-on-primary: #FFFFFF;
--color-accent: #B77F00;
--color-on-accent: #1B0F2B;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B0F2B;
--color-surface: #261A37;
--color-border: #393147;
--color-text: #F5EEF8;
--color-muted: #908992;
--color-primary: #A13ABE;
--color-on-primary: #FFFFFF;
--color-accent: #FFB300;
--color-on-accent: #1B0F2B;
}
}
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 2 | adjusted for contrast · from #8E24AA |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFB300 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.06:1 | AAA pass 4.5:1 | |
| Text on surface | 17.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.92:1 | AA pass 4.5:1 | |
| Label on primary | 7.04:1 | AAA pass 4.5:1 | |
| Label on accent | 5.26:1 | AA pass 4.5:1 | |
| Primary on background | 6.19:1 | AA pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.06:1 | AAA pass 4.5:1 | |
| Text on surface | 14.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.37:1 | AA pass 4.5:1 | |
| Label on primary | 5.43:1 | AA pass 4.5:1 | |
| Label on accent | 10.18:1 | AAA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 10.18: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 | #1B0F2B (Text 1) | #8E24AA (Text 2) | #00897B (Text 3) | #FFB300 (Text 4) | #F5EEF8 (Text 5) |
|---|---|---|---|---|---|
| #1B0F2B | Same color | 2.59— | 4.23AA Large | 10.18AAA | 16.06AAA |
| #8E24AA | 2.59— | Same color | 1.63— | 3.92AA Large | 6.19AA |
| #00897B | 4.23AA Large | 1.63— | Same color | 2.41— | 3.80AA Large |
| #FFB300 | 10.18AAA | 3.92AA Large | 2.41— | Same color | 1.58— |
| #F5EEF8 | 16.06AAA | 6.19AA | 3.80AA Large | 1.58— | Same color |
Shades
Shades and tints (50–950)
