PreviewingGo to this paletteOpen in generator
Code
/* Ruby Sale — colorset.net */
:root {
--color-1: #FFF7F6;
--color-2: #D7263D;
--color-3: #1B998B;
--color-4: #F4B9C0;
--color-5: #22151A;
--color-bg: #FFF7F6;
--color-surface: #F6EEED;
--color-border: #E0D4D2;
--color-text: #22151A;
--color-muted: #79696F;
--color-primary: #D7263D;
--color-on-primary: #FFFFFF;
--color-accent: #1B998B;
--color-on-accent: #22151A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #22151A;
--color-surface: #2D1F25;
--color-border: #45333A;
--color-text: #FFF7F6;
--color-muted: #97908F;
--color-primary: #D7263D;
--color-on-primary: #FFFFFF;
--color-accent: #1B998B;
--color-on-accent: #22151A;
}
}
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 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.71:1 | AAA pass 4.5:1 | |
| Text on surface | 15.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.89:1 | AA pass 4.5:1 | |
| Label on primary | 4.96:1 | AA pass 4.5:1 | |
| Label on accent | 5.02:1 | AA pass 4.5:1 | |
| Primary on background | 4.70:1 | AA pass 3:1 | |
| Accent on background | 3.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.71:1 | AAA pass 4.5:1 | |
| Text on surface | 14.90:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.63:1 | AA pass 4.5:1 | |
| Label on primary | 4.96:1 | AA pass 4.5:1 | |
| Label on accent | 5.02:1 | AA pass 4.5:1 | |
| Primary on background | 3.56:1 | AA Large pass 3:1 | |
| Accent on background | 5.02: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 | #FFF7F6 (Text 1) | #D7263D (Text 2) | #1B998B (Text 3) | #F4B9C0 (Text 4) | #22151A (Text 5) |
|---|---|---|---|---|---|
| #FFF7F6 | Same color | 4.70AA | 3.33AA Large | 1.58— | 16.71AAA |
| #D7263D | 4.70AA | Same color | 1.41— | 2.96— | 3.56AA Large |
| #1B998B | 3.33AA Large | 1.41— | Same color | 2.10— | 5.02AA |
| #F4B9C0 | 1.58— | 2.96— | 2.10— | Same color | 10.54AAA |
| #22151A | 16.71AAA | 3.56AA Large | 5.02AA | 10.54AAA | Same color |
Shades
Shades and tints (50–950)
