PreviewingGo to this paletteOpen in generator
Code
/* Ruby Petal — colorset.net */
:root {
--color-1: #9B111E;
--color-2: #C41E3A;
--color-3: #E0115F;
--color-4: #FF6B9D;
--color-5: #FFB3D9;
--color-bg: #FFF3F8;
--color-surface: #F9E8F0;
--color-border: #E2CFD8;
--color-text: #7A3A37;
--color-muted: #826360;
--color-primary: #E0115F;
--color-on-primary: #FFFFFF;
--color-accent: #A56184;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C0908;
--color-surface: #281311;
--color-border: #402624;
--color-text: #E8C1D3;
--color-muted: #977B89;
--color-primary: #E0115F;
--color-on-primary: #FFFFFF;
--color-accent: #BA3638;
--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 #FFB3D9 | adjusted for contrast · from #9B111E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #9B111E | adjusted for contrast · from #FFB3D9 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #C41E3A | adjusted for contrast · from #C41E3A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 4.52:1 | AA pass 4.5:1 | |
| Primary on background | 4.40:1 | AA Large pass 3:1 | |
| Accent on background | 4.18:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.91:1 | AAA pass 4.5:1 | |
| Text on surface | 10.91:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 4.04:1 | AA Large pass 3:1 | |
| Accent on background | 3.36: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 | #9B111E (Text 1) | #C41E3A (Text 2) | #E0115F (Text 3) | #FF6B9D (Text 4) | #FFB3D9 (Text 5) |
|---|---|---|---|---|---|
| #9B111E | Same color | 1.44— | 1.77— | 3.15AA Large | 5.10AA |
| #C41E3A | 1.44— | Same color | 1.23— | 2.18— | 3.53AA Large |
| #E0115F | 1.77— | 1.23— | Same color | 1.78— | 2.88— |
| #FF6B9D | 3.15AA Large | 2.18— | 1.78— | Same color | 1.62— |
| #FFB3D9 | 5.10AA | 3.53AA Large | 2.88— | 1.62— | Same color |
Shades
Shades and tints (50–950)
