PreviewingGo to this paletteOpen in generator
Code
/* Ruby Crystal — colorset.net */
:root {
--color-1: #660000;
--color-2: #880000;
--color-3: #AA0000;
--color-4: #CC0000;
--color-5: #FF3333;
--color-bg: #FFF4F2;
--color-surface: #FBE9E6;
--color-border: #E5CFCC;
--color-text: #581C16;
--color-muted: #80625D;
--color-primary: #E90A1D;
--color-on-primary: #FFFFFF;
--color-accent: #880000;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0907;
--color-surface: #281310;
--color-border: #402622;
--color-text: #C59C97;
--color-muted: #9B7C78;
--color-primary: #E90A1D;
--color-on-primary: #FFFFFF;
--color-accent: #A7463A;
--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 #FF3333 | adjusted for contrast · from #660000 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #660000 | adjusted for contrast · from #FF3333 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF3333 | adjusted for contrast · from #FF3333 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #AA0000 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.23:1 | AAA pass 4.5:1 | |
| Text on surface | 11.24:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 10.26:1 | AAA pass 4.5:1 | |
| Primary on background | 4.30:1 | AA Large pass 3:1 | |
| Accent on background | 9.51:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.86:1 | AAA pass 4.5:1 | |
| Text on surface | 7.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.87:1 | AA pass 4.5:1 | |
| Primary on background | 4.15:1 | AA Large pass 3:1 | |
| Accent on background | 3.28: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 | #660000 (Text 1) | #880000 (Text 2) | #AA0000 (Text 3) | #CC0000 (Text 4) | #FF3333 (Text 5) |
|---|---|---|---|---|---|
| #660000 | Same color | 1.31— | 1.73— | 2.28— | 3.69AA Large |
| #880000 | 1.31— | Same color | 1.32— | 1.74— | 2.82— |
| #AA0000 | 1.73— | 1.32— | Same color | 1.32— | 2.13— |
| #CC0000 | 2.28— | 1.74— | 1.32— | Same color | 1.62— |
| #FF3333 | 3.69AA Large | 2.82— | 2.13— | 1.62— | Same color |
Shades
Shades and tints (50–950)
