PreviewingGo to this paletteOpen in generator
Code
/* Digital Rainbow — colorset.net */
:root {
--color-1: #FF00FF;
--color-2: #00FFFF;
--color-3: #FFFF00;
--color-4: #FF0080;
--color-5: #8000FF;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #53457C;
--color-muted: #6C6781;
--color-primary: #F100F1;
--color-on-primary: #000000;
--color-accent: #797900;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #100C1D;
--color-surface: #1A1628;
--color-border: #2F2A40;
--color-text: #F6F8D2;
--color-muted: #8B8C71;
--color-primary: #FF00FF;
--color-on-primary: #100C1D;
--color-accent: #FFFF00;
--color-on-accent: #100C1D;
}
}
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 #00FFFF | adjusted for contrast · from #8000FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #8000FF | adjusted for contrast · from #FFFF00 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #FF00FF | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF0080 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.79:1 | AAA pass 4.5:1 | |
| Text on surface | 7.19:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 6.01:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 3.25:1 | AA Large pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.65:1 | AAA pass 4.5:1 | |
| Text on surface | 16.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.57:1 | AA pass 4.5:1 | |
| Label on primary | 6.13:1 | AA pass 4.5:1 | |
| Label on accent | 17.90:1 | AAA pass 4.5:1 | |
| Primary on background | 6.13:1 | AA pass 3:1 | |
| Accent on background | 17.90: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 | #FF00FF (Text 1) | #00FFFF (Text 2) | #FFFF00 (Text 3) | #FF0080 (Text 4) | #8000FF (Text 5) |
|---|---|---|---|---|---|
| #FF00FF | Same color | 2.50— | 2.92— | 1.20— | 1.99— |
| #00FFFF | 2.50— | Same color | 1.17— | 3.01AA Large | 4.98AA |
| #FFFF00 | 2.92— | 1.17— | Same color | 3.51AA Large | 5.82AA |
| #FF0080 | 1.20— | 3.01AA Large | 3.51AA Large | Same color | 1.65— |
| #8000FF | 1.99— | 4.98AA | 5.82AA | 1.65— | Same color |
Shades
Shades and tints (50–950)
