PreviewingGo to this paletteOpen in generator
Code
/* Candlelight — colorset.net */
:root {
--color-1: #1C1A22;
--color-2: #E8B04B;
--color-3: #9DB4CF;
--color-4: #383542;
--color-5: #F5F0E6;
--color-bg: #F5F0E6;
--color-surface: #FBF7F1;
--color-border: #DED7CA;
--color-text: #1C1A22;
--color-muted: #6D6A74;
--color-primary: #B78100;
--color-on-primary: #1C1A22;
--color-accent: #768CA6;
--color-on-accent: #1C1A22;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1A22;
--color-surface: #27252D;
--color-border: #3C3945;
--color-text: #F5F0E6;
--color-muted: #938E85;
--color-primary: #E8B04B;
--color-on-primary: #1C1A22;
--color-accent: #9DB4CF;
--color-on-accent: #1C1A22;
}
}
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 | adjusted for contrast · from #E8B04B | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9DB4CF | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.15:1 | AAA pass 4.5:1 | |
| Text on surface | 16.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.66:1 | AA pass 4.5:1 | |
| Label on primary | 5.04:1 | AA pass 4.5:1 | |
| Label on accent | 4.98:1 | AA pass 4.5:1 | |
| Primary on background | 3.00:1 | AA Large pass 3:1 | |
| Accent on background | 3.04:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.31:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.28:1 | AA pass 4.5:1 | |
| Label on primary | 8.80:1 | AAA pass 4.5:1 | |
| Label on accent | 8.08:1 | AAA pass 4.5:1 | |
| Primary on background | 8.80:1 | AAA pass 3:1 | |
| Accent on background | 8.08: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 | #1C1A22 (Text 1) | #E8B04B (Text 2) | #9DB4CF (Text 3) | #383542 (Text 4) | #F5F0E6 (Text 5) |
|---|---|---|---|---|---|
| #1C1A22 | Same color | 8.80AAA | 8.08AAA | 1.44— | 15.15AAA |
| #E8B04B | 8.80AAA | Same color | 1.09— | 6.12AA | 1.72— |
| #9DB4CF | 8.08AAA | 1.09— | Same color | 5.62AA | 1.87— |
| #383542 | 1.44— | 6.12AA | 5.62AA | Same color | 10.53AAA |
| #F5F0E6 | 15.15AAA | 1.72— | 1.87— | 10.53AAA | Same color |
Shades
Shades and tints (50–950)
