PreviewingGo to this paletteOpen in generator
Code
/* Retro Rainbow — colorset.net */
:root {
--color-1: #FF4081;
--color-2: #40E0D0;
--color-3: #FFD700;
--color-4: #FF6347;
--color-5: #32CD32;
--color-bg: #FBF7E8;
--color-surface: #F1EEDF;
--color-border: #DAD5C3;
--color-text: #783949;
--color-muted: #816268;
--color-primary: #E1186A;
--color-on-primary: #FFFFFF;
--color-accent: #008808;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C080D;
--color-surface: #271217;
--color-border: #3F252B;
--color-text: #E4DAB5;
--color-muted: #898267;
--color-primary: #FF4081;
--color-on-primary: #1C080D;
--color-accent: #32CD32;
--color-on-accent: #1C080D;
}
}
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 #FF4081 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #FF4081 | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF4081 | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #32CD32 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 4.33:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.76:1 | AAA pass 4.5:1 | |
| Text on surface | 12.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.78:1 | AA pass 4.5:1 | |
| Label on accent | 9.10:1 | AAA pass 4.5:1 | |
| Primary on background | 5.78:1 | AA pass 3:1 | |
| Accent on background | 9.10: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 | #FF4081 (Text 1) | #40E0D0 (Text 2) | #FFD700 (Text 3) | #FF6347 (Text 4) | #32CD32 (Text 5) |
|---|---|---|---|---|---|
| #FF4081 | Same color | 2.03— | 2.38— | 1.13— | 1.57— |
| #40E0D0 | 2.03— | Same color | 1.17— | 1.79— | 1.29— |
| #FFD700 | 2.38— | 1.17— | Same color | 2.10— | 1.51— |
| #FF6347 | 1.13— | 1.79— | 2.10— | Same color | 1.39— |
| #32CD32 | 1.57— | 1.29— | 1.51— | 1.39— | Same color |
Shades
Shades and tints (50–950)
