PreviewingGo to this paletteOpen in generator
Code
/* Megacorp — colorset.net */
:root {
--color-1: #EEF0F4;
--color-2: #5B21B6;
--color-3: #00C2D1;
--color-4: #C7CBD6;
--color-5: #0E1220;
--color-bg: #EEF0F4;
--color-surface: #F6F7FA;
--color-border: #D4D7DF;
--color-text: #0E1220;
--color-muted: #5F6577;
--color-primary: #5B21B6;
--color-on-primary: #FFFFFF;
--color-accent: #0099A5;
--color-on-accent: #0E1220;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0E1220;
--color-surface: #181C2B;
--color-border: #2B3144;
--color-text: #EEF0F4;
--color-muted: #888A8D;
--color-primary: #7849DC;
--color-on-primary: #FFFFFF;
--color-accent: #00C2D1;
--color-on-accent: #0E1220;
}
}
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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #5B21B6 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #00C2D1 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.35:1 | AAA pass 4.5:1 | |
| Text on surface | 17.41:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 8.98:1 | AAA pass 4.5:1 | |
| Label on accent | 5.42:1 | AA pass 4.5:1 | |
| Primary on background | 7.87:1 | AAA pass 3:1 | |
| Accent on background | 3.02:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.35:1 | AAA pass 4.5:1 | |
| Text on surface | 14.85:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.39:1 | AA pass 4.5:1 | |
| Label on primary | 5.55:1 | AA pass 4.5:1 | |
| Label on accent | 8.56:1 | AAA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 8.56: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 | #EEF0F4 (Text 1) | #5B21B6 (Text 2) | #00C2D1 (Text 3) | #C7CBD6 (Text 4) | #0E1220 (Text 5) |
|---|---|---|---|---|---|
| #EEF0F4 | Same color | 7.87AAA | 1.91— | 1.42— | 16.35AAA |
| #5B21B6 | 7.87AAA | Same color | 4.12AA Large | 5.54AA | 2.08— |
| #00C2D1 | 1.91— | 4.12AA Large | Same color | 1.34— | 8.56AAA |
| #C7CBD6 | 1.42— | 5.54AA | 1.34— | Same color | 11.49AAA |
| #0E1220 | 16.35AAA | 2.08— | 8.56AAA | 11.49AAA | Same color |
Shades
Shades and tints (50–950)
