PreviewingGo to this paletteOpen in generator
Code
/* Midnight Iris — colorset.net */
:root {
--color-1: #0F0F23;
--color-2: #191970;
--color-3: #000080;
--color-4: #483D8B;
--color-5: #6A5ACD;
--color-bg: #F6F6FF;
--color-surface: #ECECFB;
--color-border: #D3D3E5;
--color-text: #0F0F23;
--color-muted: #63657E;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #000080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F0F23;
--color-surface: #19192E;
--color-border: #2D2E44;
--color-text: #A5A5C8;
--color-muted: #81819B;
--color-primary: #6A5ACD;
--color-on-primary: #FFFFFF;
--color-accent: #656780;
--color-on-accent: #FFFFFF;
}
}
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 #6A5ACD | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #6A5ACD |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #6A5ACD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.56:1 | AAA pass 4.5:1 | |
| Text on surface | 16.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.29:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 16.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.94:1 | AA pass 3:1 | |
| Accent on background | 14.90:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.98:1 | AA pass 4.5:1 | |
| Label on primary | 5.31:1 | AA pass 4.5:1 | |
| Label on accent | 5.52:1 | AA pass 4.5:1 | |
| Primary on background | 3.56:1 | AA Large pass 3:1 | |
| Accent on background | 3.42:1 | AA Large 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 | #0F0F23 (Text 1) | #191970 (Text 2) | #000080 (Text 3) | #483D8B (Text 4) | #6A5ACD (Text 5) |
|---|---|---|---|---|---|
| #0F0F23 | Same color | 1.27— | 1.18— | 2.08— | 3.56AA Large |
| #191970 | 1.27— | Same color | 1.08— | 1.64— | 2.80— |
| #000080 | 1.18— | 1.08— | Same color | 1.77— | 3.02AA Large |
| #483D8B | 2.08— | 1.64— | 1.77— | Same color | 1.71— |
| #6A5ACD | 3.56AA Large | 2.80— | 3.02AA Large | 1.71— | Same color |
Shades
Shades and tints (50–950)
