PreviewingGo to this paletteOpen in generator
Code
/* Claret Cellar — colorset.net */
:root {
--color-1: #400020;
--color-2: #5C0120;
--color-3: #800020;
--color-4: #9B111E;
--color-5: #B22234;
--color-bg: #FFF4F3;
--color-surface: #FBE9E8;
--color-border: #E5CFCE;
--color-text: #3E0420;
--color-muted: #80626C;
--color-primary: #B22234;
--color-on-primary: #FFFFFF;
--color-accent: #5C0120;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1B080F;
--color-surface: #26121A;
--color-border: #3E252E;
--color-text: #C59C9A;
--color-muted: #9B7B7A;
--color-primary: #BD2E3C;
--color-on-primary: #FFFFFF;
--color-accent: #96506A;
--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 #B22234 | adjusted for contrast · from #400020 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #400020 | adjusted for contrast · from #B22234 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #B22234 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #B22234 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.68:1 | AAA pass 4.5:1 | |
| Text on surface | 14.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 6.62:1 | AA pass 4.5:1 | |
| Label on accent | 14.19:1 | AAA pass 4.5:1 | |
| Primary on background | 6.14:1 | AA pass 3:1 | |
| Accent on background | 13.16:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.90:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.80:1 | AA pass 4.5:1 | |
| Label on accent | 5.75:1 | AA pass 4.5:1 | |
| Primary on background | 3.33: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 | #400020 (Text 1) | #5C0120 (Text 2) | #800020 (Text 3) | #9B111E (Text 4) | #B22234 (Text 5) |
|---|---|---|---|---|---|
| #400020 | Same color | 1.19— | 1.56— | 2.01— | 2.56— |
| #5C0120 | 1.19— | Same color | 1.31— | 1.68— | 2.14— |
| #800020 | 1.56— | 1.31— | Same color | 1.29— | 1.64— |
| #9B111E | 2.01— | 1.68— | 1.29— | Same color | 1.27— |
| #B22234 | 2.56— | 2.14— | 1.64— | 1.27— | Same color |
Shades
Shades and tints (50–950)
