PreviewingGo to this paletteOpen in generator
Code
/* Cosmic Rainbow — colorset.net */
:root {
--color-1: #667EEA;
--color-2: #764BA2;
--color-3: #F093FB;
--color-4: #F5576C;
--color-5: #4FACFE;
--color-bg: #FEF3FF;
--color-surface: #F4E9F5;
--color-border: #DDD0DF;
--color-text: #5B4278;
--color-muted: #71667F;
--color-primary: #D53752;
--color-on-primary: #FFFFFF;
--color-accent: #0C7AC8;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #130B1C;
--color-surface: #1D1526;
--color-border: #32293E;
--color-text: #CCB2CF;
--color-muted: #907C92;
--color-primary: #F5576C;
--color-on-primary: #130B1C;
--color-accent: #4FACFE;
--color-on-accent: #130B1C;
}
}
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 #F093FB | adjusted for contrast · from #764BA2 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #764BA2 | adjusted for contrast · from #F093FB |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #F5576C | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #667EEA | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 4.67:1 | AA pass 4.5:1 | |
| Label on accent | 4.53:1 | AA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.92:1 | AAA pass 4.5:1 | |
| Text on surface | 9.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 5.92:1 | AA pass 4.5:1 | |
| Label on accent | 7.93:1 | AAA pass 4.5:1 | |
| Primary on background | 5.92:1 | AA pass 3:1 | |
| Accent on background | 7.93: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 | #667EEA (Text 1) | #764BA2 (Text 2) | #F093FB (Text 3) | #F5576C (Text 4) | #4FACFE (Text 5) |
|---|---|---|---|---|---|
| #667EEA | Same color | 1.74— | 1.79— | 1.13— | 1.51— |
| #764BA2 | 1.74— | Same color | 3.11AA Large | 1.96— | 2.63— |
| #F093FB | 1.79— | 3.11AA Large | Same color | 1.59— | 1.19— |
| #F5576C | 1.13— | 1.96— | 1.59— | Same color | 1.34— |
| #4FACFE | 1.51— | 2.63— | 1.19— | 1.34— | Same color |
Shades
Shades and tints (50–950)
