PreviewingGo to this paletteOpen in generator
Code
/* Ruby Margin — colorset.net */
:root {
--color-1: #FBF6F7;
--color-2: #B4234A;
--color-3: #2E8B7A;
--color-4: #C68D90;
--color-5: #310C13;
--color-bg: #FBF6F7;
--color-surface: #F2EDEE;
--color-border: #DCD3D5;
--color-text: #310C13;
--color-muted: #816265;
--color-primary: #B4234A;
--color-on-primary: #FFFFFF;
--color-accent: #228271;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #310C13;
--color-surface: #3D171D;
--color-border: #4D3235;
--color-text: #FBF6F7;
--color-muted: #959191;
--color-primary: #C63658;
--color-on-primary: #FFFFFF;
--color-accent: #228271;
--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 | adjusted for contrast · from #B4234A |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2E8B7A | adjusted for contrast · from #2E8B7A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.46:1 | AAA pass 4.5:1 | |
| Text on surface | 15.20:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.07:1 | AA pass 4.5:1 | |
| Label on primary | 6.40:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 5.98:1 | AA pass 3:1 | |
| Accent on background | 4.36:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.46:1 | AAA pass 4.5:1 | |
| Text on surface | 14.66:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.65:1 | AA pass 4.5:1 | |
| Label on primary | 5.16:1 | AA pass 4.5:1 | |
| Label on accent | 4.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 3.77: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 | #FBF6F7 (Text 1) | #B4234A (Text 2) | #2E8B7A (Text 3) | #C68D90 (Text 4) | #310C13 (Text 5) |
|---|---|---|---|---|---|
| #FBF6F7 | Same color | 5.98AA | 3.86AA Large | 2.58— | 16.46AAA |
| #B4234A | 5.98AA | Same color | 1.55— | 2.32— | 2.75— |
| #2E8B7A | 3.86AA Large | 1.55— | Same color | 1.50— | 4.27AA Large |
| #C68D90 | 2.58— | 2.32— | 1.50— | Same color | 6.38AA |
| #310C13 | 16.46AAA | 2.75— | 4.27AA Large | 6.38AA | Same color |
Shades
Shades and tints (50–950)
