PreviewingGo to this paletteOpen in generator
Code
/* Nature Rainbow — colorset.net */
:root {
--color-1: #11998E;
--color-2: #38EF7D;
--color-3: #FEE140;
--color-4: #FA709A;
--color-5: #667EEA;
--color-bg: #FAF7E8;
--color-surface: #F1EEDF;
--color-border: #D9D5C3;
--color-text: #005852;
--color-muted: #4F716C;
--color-primary: #586ED9;
--color-on-primary: #FFFFFF;
--color-accent: #9D8800;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #001311;
--color-surface: #021F1C;
--color-border: #123431;
--color-text: #E9E2BC;
--color-muted: #888368;
--color-primary: #586ED9;
--color-on-primary: #FFFFFF;
--color-accent: #FEE140;
--color-on-accent: #001311;
}
}
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 #FEE140 | adjusted for contrast · from #11998E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #11998E | adjusted for contrast · from #FEE140 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #667EEA | adjusted for contrast · from #667EEA |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #11998E | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.96:1 | AA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.59:1 | AAA pass 4.5:1 | |
| Text on surface | 13.22:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 14.58:1 | AAA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 14.58: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 | #11998E (Text 1) | #38EF7D (Text 2) | #FEE140 (Text 3) | #FA709A (Text 4) | #667EEA (Text 5) |
|---|---|---|---|---|---|
| #11998E | Same color | 2.31— | 2.69— | 1.31— | 1.04— |
| #38EF7D | 2.31— | Same color | 1.16— | 1.76— | 2.41— |
| #FEE140 | 2.69— | 1.16— | Same color | 2.05— | 2.80— |
| #FA709A | 1.31— | 1.76— | 2.05— | Same color | 1.37— |
| #667EEA | 1.04— | 2.41— | 2.80— | 1.37— | Same color |
Shades
Shades and tints (50–950)
