PreviewingGo to this paletteOpen in generator
Code
/* Viridian Spring — colorset.net */
:root {
--color-1: #40826D;
--color-2: #52A889;
--color-3: #6CC4A1;
--color-4: #8ED5B9;
--color-5: #B0E6D1;
--color-bg: #EBFBF5;
--color-surface: #E2F2EB;
--color-border: #C7DAD2;
--color-text: #105946;
--color-muted: #527166;
--color-primary: #41987A;
--color-on-primary: #000000;
--color-accent: #3D836A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #01140D;
--color-surface: #091E17;
--color-border: #1A342B;
--color-text: #B9E3D2;
--color-muted: #6A897D;
--color-primary: #52A889;
--color-on-primary: #01140D;
--color-accent: #8ED5B9;
--color-on-accent: #01140D;
}
}
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 #B0E6D1 | adjusted for contrast · from #40826D |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #40826D | adjusted for contrast · from #B0E6D1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #52A889 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #40826D | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 6.00:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 3.28:1 | AA Large pass 3:1 | |
| Accent on background | 4.22:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.53:1 | AAA pass 4.5:1 | |
| Text on surface | 12.38:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.61:1 | AA pass 4.5:1 | |
| Label on accent | 11.17:1 | AAA pass 4.5:1 | |
| Primary on background | 6.61:1 | AA pass 3:1 | |
| Accent on background | 11.17: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 | #40826D (Text 1) | #52A889 (Text 2) | #6CC4A1 (Text 3) | #8ED5B9 (Text 4) | #B0E6D1 (Text 5) |
|---|---|---|---|---|---|
| #40826D | Same color | 1.58— | 2.17— | 2.67— | 3.26AA Large |
| #52A889 | 1.58— | Same color | 1.37— | 1.69— | 2.06— |
| #6CC4A1 | 2.17— | 1.37— | Same color | 1.23— | 1.50— |
| #8ED5B9 | 2.67— | 1.69— | 1.23— | Same color | 1.22— |
| #B0E6D1 | 3.26AA Large | 2.06— | 1.50— | 1.22— | Same color |
Shades
Shades and tints (50–950)
