PreviewingGo to this paletteOpen in generator
Code
/* Garnet Rust — colorset.net */
:root {
--color-1: #5C0120;
--color-2: #800020;
--color-3: #A52A2A;
--color-4: #D2691E;
--color-5: #E97451;
--color-bg: #FFF4F1;
--color-surface: #FAE9E4;
--color-border: #E5D0C9;
--color-text: #521624;
--color-muted: #806165;
--color-primary: #BC5800;
--color-on-primary: #FFFFFF;
--color-accent: #800020;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C080C;
--color-surface: #271216;
--color-border: #3F2529;
--color-text: #C49D91;
--color-muted: #977A70;
--color-primary: #BC5800;
--color-on-primary: #FFFFFF;
--color-accent: #A34859;
--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 #E97451 | adjusted for contrast · from #5C0120 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #5C0120 | adjusted for contrast · from #E97451 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #D2691E | adjusted for contrast · from #D2691E |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #A52A2A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.98:1 | AAA pass 4.5:1 | |
| Text on surface | 11.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 10.83:1 | AAA pass 4.5:1 | |
| Primary on background | 4.29:1 | AA Large pass 3:1 | |
| Accent on background | 10.04:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 5.79:1 | AA pass 4.5:1 | |
| Primary on background | 4.16:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #5C0120 (Text 1) | #800020 (Text 2) | #A52A2A (Text 3) | #D2691E (Text 4) | #E97451 (Text 5) |
|---|---|---|---|---|---|
| #5C0120 | Same color | 1.31— | 2.00— | 3.90AA Large | 4.78AA |
| #800020 | 1.31— | Same color | 1.53— | 2.98— | 3.65AA Large |
| #A52A2A | 2.00— | 1.53— | Same color | 1.95— | 2.39— |
| #D2691E | 3.90AA Large | 2.98— | 1.95— | Same color | 1.23— |
| #E97451 | 4.78AA | 3.65AA Large | 2.39— | 1.23— | Same color |
Shades
Shades and tints (50–950)
