PreviewingGo to this paletteOpen in generator
Code
/* Night Barista — colorset.net */
:root {
--color-1: #002021;
--color-2: #2AC3BB;
--color-3: #E7A875;
--color-4: #12484B;
--color-5: #F2EEE3;
--color-bg: #F2EEE3;
--color-surface: #F8F5EF;
--color-border: #DBD5C7;
--color-text: #002021;
--color-muted: #517273;
--color-primary: #00837D;
--color-on-primary: #FFFFFF;
--color-accent: #A26835;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #002021;
--color-surface: #0A2B2C;
--color-border: #1F4142;
--color-text: #F2EEE3;
--color-muted: #918D83;
--color-primary: #2AC3BB;
--color-on-primary: #002021;
--color-accent: #E7A875;
--color-on-accent: #002021;
}
}
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 #12484B | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #E7A875 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.74:1 | AAA pass 4.5:1 | |
| Text on surface | 15.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.52:1 | AA pass 4.5:1 | |
| Label on primary | 4.62:1 | AA pass 4.5:1 | |
| Label on accent | 4.60:1 | AA pass 4.5:1 | |
| Primary on background | 3.99:1 | AA Large pass 3:1 | |
| Accent on background | 3.97:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.74:1 | AAA pass 4.5:1 | |
| Text on surface | 12.99:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.16:1 | AA pass 4.5:1 | |
| Label on primary | 7.83:1 | AAA pass 4.5:1 | |
| Label on accent | 8.35:1 | AAA pass 4.5:1 | |
| Primary on background | 7.83:1 | AAA pass 3:1 | |
| Accent on background | 8.35: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 | #002021 (Text 1) | #2AC3BB (Text 2) | #E7A875 (Text 3) | #12484B (Text 4) | #F2EEE3 (Text 5) |
|---|---|---|---|---|---|
| #002021 | Same color | 7.83AAA | 8.35AAA | 1.67— | 14.74AAA |
| #2AC3BB | 7.83AAA | Same color | 1.07— | 4.68AA | 1.88— |
| #E7A875 | 8.35AAA | 1.07— | Same color | 4.99AA | 1.77— |
| #12484B | 1.67— | 4.68AA | 4.99AA | Same color | 8.82AAA |
| #F2EEE3 | 14.74AAA | 1.88— | 1.77— | 8.82AAA | Same color |
Shades
Shades and tints (50–950)
