PreviewingGo to this paletteOpen in generator
Code
/* Ruby and Rust — colorset.net */
:root {
--color-1: #DC143C;
--color-2: #B22222;
--color-3: #8B0000;
--color-4: #A0522D;
--color-5: #CD853F;
--color-bg: #FFF5EC;
--color-surface: #F8EBE0;
--color-border: #E1D2C5;
--color-text: #70322A;
--color-muted: #82645F;
--color-primary: #DC143C;
--color-on-primary: #FFFFFF;
--color-accent: #A96415;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402622;
--color-text: #BB9E84;
--color-muted: #957E6A;
--color-primary: #DC143C;
--color-on-primary: #FFFFFF;
--color-accent: #CD853F;
--color-on-accent: #1C0907;
}
}
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 #CD853F | adjusted for contrast · from #8B0000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8B0000 | adjusted for contrast · from #CD853F |
| Muted text | derived | derived |
| Primary | from palette · color 1 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #A0522D | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.96:1 | AAA pass 4.5:1 | |
| Text on surface | 8.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 4.99:1 | AA pass 4.5:1 | |
| Label on accent | 4.65:1 | AA pass 4.5:1 | |
| Primary on background | 4.64:1 | AA pass 3:1 | |
| Accent on background | 4.32:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.64:1 | AAA pass 4.5:1 | |
| Text on surface | 7.00:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.99:1 | AA pass 4.5:1 | |
| Label on accent | 6.43:1 | AA pass 4.5:1 | |
| Primary on background | 3.86:1 | AA Large pass 3:1 | |
| Accent on background | 6.43:1 | AA 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 | #DC143C (Text 1) | #B22222 (Text 2) | #8B0000 (Text 3) | #A0522D (Text 4) | #CD853F (Text 5) |
|---|---|---|---|---|---|
| #DC143C | Same color | 1.34— | 2.01— | 1.13— | 1.67— |
| #B22222 | 1.34— | Same color | 1.50— | 1.19— | 2.23— |
| #8B0000 | 2.01— | 1.50— | Same color | 1.78— | 3.35AA Large |
| #A0522D | 1.13— | 1.19— | 1.78— | Same color | 1.88— |
| #CD853F | 1.67— | 2.23— | 3.35AA Large | 1.88— | Same color |
Shades
Shades and tints (50–950)
