PreviewingGo to this paletteOpen in generator
Code
/* Moth Lamp — colorset.net */
:root {
--color-1: #221915;
--color-2: #D9B76E;
--color-3: #6A7FA0;
--color-4: #43342B;
--color-5: #F3E8DA;
--color-bg: #F3E8DA;
--color-surface: #F7F0E8;
--color-border: #DCCFBE;
--color-text: #221915;
--color-muted: #726762;
--color-primary: #6A7FA0;
--color-on-primary: #000000;
--color-accent: #907024;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #221915;
--color-surface: #2D241F;
--color-border: #453832;
--color-text: #F3E8DA;
--color-muted: #968C80;
--color-primary: #6A7FA0;
--color-on-primary: #000000;
--color-accent: #D9B76E;
--color-on-accent: #221915;
}
}
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 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #6A7FA0 | from palette · color 2 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.26:1 | AAA pass 4.5:1 | |
| Text on surface | 15.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.53:1 | AA pass 4.5:1 | |
| Label on primary | 5.16:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.83:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.26:1 | AAA pass 4.5:1 | |
| Text on surface | 12.55:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.22:1 | AA pass 4.5:1 | |
| Label on primary | 5.16:1 | AA pass 4.5:1 | |
| Label on accent | 8.99:1 | AAA pass 4.5:1 | |
| Primary on background | 4.23:1 | AA Large pass 3:1 | |
| Accent on background | 8.99: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 | #221915 (Text 1) | #D9B76E (Text 2) | #6A7FA0 (Text 3) | #43342B (Text 4) | #F3E8DA (Text 5) |
|---|---|---|---|---|---|
| #221915 | Same color | 8.99AAA | 4.23AA Large | 1.45— | 14.26AAA |
| #D9B76E | 8.99AAA | Same color | 2.12— | 6.20AA | 1.59— |
| #6A7FA0 | 4.23AA Large | 2.12— | Same color | 2.92— | 3.37AA Large |
| #43342B | 1.45— | 6.20AA | 2.92— | Same color | 9.84AAA |
| #F3E8DA | 14.26AAA | 1.59— | 3.37AA Large | 9.84AAA | Same color |
Shades
Shades and tints (50–950)
