PreviewingGo to this paletteOpen in generator
Code
/* Onyx Champagne — colorset.net */
:root {
--color-1: #121214;
--color-2: #CBB27C;
--color-3: #2D4C8C;
--color-4: #2E2D30;
--color-5: #F3EEE4;
--color-bg: #F3EEE4;
--color-surface: #F8F5EF;
--color-border: #DCD5C8;
--color-text: #121214;
--color-muted: #646467;
--color-primary: #2D4C8C;
--color-on-primary: #FFFFFF;
--color-accent: #9C844F;
--color-on-accent: #121214;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #121214;
--color-surface: #1C1C1E;
--color-border: #303036;
--color-text: #F3EEE4;
--color-muted: #8D887F;
--color-primary: #4566A9;
--color-on-primary: #FFFFFF;
--color-accent: #CBB27C;
--color-on-accent: #121214;
}
}
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 5 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #2D4C8C |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #CBB27C | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.18:1 | AAA pass 4.5:1 | |
| Text on surface | 17.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.10:1 | AA pass 4.5:1 | |
| Label on primary | 8.32:1 | AAA pass 4.5:1 | |
| Label on accent | 5.19:1 | AA pass 4.5:1 | |
| Primary on background | 7.20:1 | AAA pass 3:1 | |
| Accent on background | 3.12:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.18:1 | AAA pass 4.5:1 | |
| Text on surface | 14.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 5.64:1 | AA pass 4.5:1 | |
| Label on accent | 9.09:1 | AAA pass 4.5:1 | |
| Primary on background | 3.32:1 | AA Large pass 3:1 | |
| Accent on background | 9.09:1 | AAA 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 | #121214 (Text 1) | #CBB27C (Text 2) | #2D4C8C (Text 3) | #2E2D30 (Text 4) | #F3EEE4 (Text 5) |
|---|---|---|---|---|---|
| #121214 | Same color | 9.09AAA | 2.25— | 1.37— | 16.18AAA |
| #CBB27C | 9.09AAA | Same color | 4.04AA Large | 6.65AA | 1.78— |
| #2D4C8C | 2.25— | 4.04AA Large | Same color | 1.65— | 7.20AAA |
| #2E2D30 | 1.37— | 6.65AA | 1.65— | Same color | 11.84AAA |
| #F3EEE4 | 16.18AAA | 1.78— | 7.20AAA | 11.84AAA | Same color |
Shades
Shades and tints (50–950)
