PreviewingGo to this paletteOpen in generator
Code
/* Heraldic Jewel — colorset.net */
:root {
--color-1: #800000;
--color-2: #008000;
--color-3: #000080;
--color-4: #808000;
--color-5: #800080;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #008000;
--color-on-primary: #FFFFFF;
--color-accent: #800080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #A6A884;
--color-muted: #84856A;
--color-primary: #008000;
--color-on-primary: #FFFFFF;
--color-accent: #A434A2;
--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 #808000 | adjusted for contrast · from #000080 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000080 | adjusted for contrast · from #808000 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 5 | adjusted for contrast · from #800080 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 5.14:1 | AA pass 4.5:1 | |
| Label on accent | 9.42:1 | AAA pass 4.5:1 | |
| Primary on background | 4.78:1 | AA pass 3:1 | |
| Accent on background | 8.77:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.14:1 | AA pass 4.5:1 | |
| Label on accent | 5.85:1 | AA pass 4.5:1 | |
| Primary on background | 3.72:1 | AA Large pass 3:1 | |
| Accent on background | 3.27: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 | #800000 (Text 1) | #008000 (Text 2) | #000080 (Text 3) | #808000 (Text 4) | #800080 (Text 5) |
|---|---|---|---|---|---|
| #800000 | Same color | 2.13— | 1.46— | 2.61— | 1.16— |
| #008000 | 2.13— | Same color | 3.12AA Large | 1.22— | 1.83— |
| #000080 | 1.46— | 3.12AA Large | Same color | 3.82AA Large | 1.70— |
| #808000 | 2.61— | 1.22— | 3.82AA Large | Same color | 2.25— |
| #800080 | 1.16— | 1.83— | 1.70— | 2.25— | Same color |
Shades
Shades and tints (50–950)
