PreviewingGo to this paletteOpen in generator
Code
/* Deep Space — colorset.net */
:root {
--color-1: #191970;
--color-2: #4B0082;
--color-3: #6A5ACD;
--color-4: #9370DB;
--color-5: #E6E6FA;
--color-bg: #E6E6FA;
--color-surface: #EEEEFA;
--color-border: #CDCDE4;
--color-text: #1D2557;
--color-muted: #606780;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #828193;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #E6E6FA;
--color-muted: #828294;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #9B93F9;
--color-on-accent: #0A0E1F;
}
}
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 5 | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9370DB | adjusted for contrast · from #9370DB |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.73:1 | AAA pass 4.5:1 | |
| Text on surface | 12.54:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.55:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.10:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.58:1 | AAA pass 4.5:1 | |
| Text on surface | 14.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 7.24:1 | AAA pass 4.5:1 | |
| Primary on background | 3.61:1 | AA Large pass 3:1 | |
| Accent on background | 7.24: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 | #191970 (Text 1) | #4B0082 (Text 2) | #6A5ACD (Text 3) | #9370DB (Text 4) | #E6E6FA (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.15— | 2.80— | 3.95AA Large | 12.06AAA |
| #4B0082 | 1.15— | Same color | 2.44— | 3.44AA Large | 10.52AAA |
| #6A5ACD | 2.80— | 2.44— | Same color | 1.41— | 4.31AA Large |
| #9370DB | 3.95AA Large | 3.44AA Large | 1.41— | Same color | 3.06AA Large |
| #E6E6FA | 12.06AAA | 10.52AAA | 4.31AA Large | 3.06AA Large | Same color |
Shades
Shades and tints (50–950)
