PreviewingGo to this paletteOpen in generator
Code
/* Rust Leaf — colorset.net */
:root {
--color-1: #F7ECE3;
--color-2: #C1562B;
--color-3: #6B5A8C;
--color-4: #EAD2C0;
--color-5: #2A1D16;
--color-bg: #F7ECE3;
--color-surface: #FBF4EF;
--color-border: #E1D3C7;
--color-text: #2A1D16;
--color-muted: #786860;
--color-primary: #C1562B;
--color-on-primary: #FFFFFF;
--color-accent: #6B5A8C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #2A1D16;
--color-surface: #352821;
--color-border: #4E3D33;
--color-text: #F7ECE3;
--color-muted: #9B9189;
--color-primary: #C1562B;
--color-on-primary: #FFFFFF;
--color-accent: #7C6B9F;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #6B5A8C |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.05:1 | AAA pass 4.5:1 | |
| Text on surface | 15.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.58:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 6.06:1 | AA pass 4.5:1 | |
| Primary on background | 3.90:1 | AA Large pass 3:1 | |
| Accent on background | 5.21:1 | AA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.05:1 | AAA pass 4.5:1 | |
| Text on surface | 12.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 4.53:1 | AA pass 4.5:1 | |
| Label on accent | 4.71:1 | AA pass 4.5:1 | |
| Primary on background | 3.60:1 | AA Large pass 3:1 | |
| Accent on background | 3.47: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 | #F7ECE3 (Text 1) | #C1562B (Text 2) | #6B5A8C (Text 3) | #EAD2C0 (Text 4) | #2A1D16 (Text 5) |
|---|---|---|---|---|---|
| #F7ECE3 | Same color | 3.90AA Large | 5.21AA | 1.25— | 14.05AAA |
| #C1562B | 3.90AA Large | Same color | 1.34— | 3.12AA Large | 3.60AA Large |
| #6B5A8C | 5.21AA | 1.34— | Same color | 4.18AA Large | 2.70— |
| #EAD2C0 | 1.25— | 3.12AA Large | 4.18AA Large | Same color | 11.26AAA |
| #2A1D16 | 14.05AAA | 3.60AA Large | 2.70— | 11.26AAA | Same color |
Shades
Shades and tints (50–950)
