PreviewingGo to this paletteOpen in generator
Code
/* Dark Jewel — colorset.net */
:root {
--color-1: #8B0000;
--color-2: #000080;
--color-3: #228B22;
--color-4: #FFD700;
--color-5: #8B008B;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #8B008B;
--color-on-primary: #FFFFFF;
--color-accent: #1D881E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #E4DAB5;
--color-muted: #898267;
--color-primary: #A92FA7;
--color-on-primary: #FFFFFF;
--color-accent: #1D881E;
--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 #FFD700 | adjusted for contrast · from #000080 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000080 | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #8B008B |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #228B22 | adjusted for contrast · from #228B22 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.16:1 | AAA pass 4.5:1 | |
| Text on surface | 13.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 8.50:1 | AAA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 7.92:1 | AAA pass 3:1 | |
| Accent on background | 4.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.65:1 | AAA pass 4.5:1 | |
| Text on surface | 12.53:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 4.57:1 | AA pass 4.5:1 | |
| Primary on background | 3.32:1 | AA Large pass 3:1 | |
| Accent on background | 4.18: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 | #8B0000 (Text 1) | #000080 (Text 2) | #228B22 (Text 3) | #FFD700 (Text 4) | #8B008B (Text 5) |
|---|---|---|---|---|---|
| #8B0000 | Same color | 1.60— | 2.28— | 7.14AAA | 1.18— |
| #000080 | 1.60— | Same color | 3.65AA Large | 11.41AAA | 1.88— |
| #228B22 | 2.28— | 3.65AA Large | Same color | 3.13AA Large | 1.94— |
| #FFD700 | 7.14AAA | 11.41AAA | 3.13AA Large | Same color | 6.06AA |
| #8B008B | 1.18— | 1.88— | 1.94— | 6.06AA | Same color |
Shades
Shades and tints (50–950)
