PreviewingGo to this paletteOpen in generator
Code
/* Havana Colors — colorset.net */
:root {
--color-1: #20B2AA;
--color-2: #FF6347;
--color-3: #FFD700;
--color-4: #32CD32;
--color-5: #DA70D6;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #005752;
--color-muted: #4D706D;
--color-primary: #008808;
--color-on-primary: #FFFFFF;
--color-accent: #C960C6;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001312;
--color-surface: #021F1D;
--color-border: #123432;
--color-text: #E4DAB5;
--color-muted: #8C856A;
--color-primary: #32CD32;
--color-on-primary: #001312;
--color-accent: #DA70D6;
--color-on-accent: #001312;
}
}
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 #FFD700 | adjusted for contrast · from #20B2AA |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #20B2AA | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #20B2AA | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #DA70D6 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.88:1 | AAA pass 4.5:1 | |
| Text on surface | 7.26:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.61:1 | AAA pass 4.5:1 | |
| Text on surface | 12.33:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.15:1 | AA pass 4.5:1 | |
| Label on primary | 9.00:1 | AAA pass 4.5:1 | |
| Label on accent | 6.60:1 | AA pass 4.5:1 | |
| Primary on background | 9.00:1 | AAA pass 3:1 | |
| Accent on background | 6.60:1 | AA 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 | #20B2AA (Text 1) | #FF6347 (Text 2) | #FFD700 (Text 3) | #32CD32 (Text 4) | #DA70D6 (Text 5) |
|---|---|---|---|---|---|
| #20B2AA | Same color | 1.12— | 1.87— | 1.24— | 1.10— |
| #FF6347 | 1.12— | Same color | 2.10— | 1.39— | 1.02— |
| #FFD700 | 1.87— | 2.10— | Same color | 1.51— | 2.06— |
| #32CD32 | 1.24— | 1.39— | 1.51— | Same color | 1.36— |
| #DA70D6 | 1.10— | 1.02— | 2.06— | 1.36— | Same color |
Shades
Shades and tints (50–950)
