PreviewingGo to this paletteOpen in generator
Code
/* Iris Night — colorset.net */
:root {
--color-1: #12142A;
--color-2: #8F9CFF;
--color-3: #F78FB3;
--color-4: #2C3058;
--color-5: #EEF0FF;
--color-bg: #EEF0FF;
--color-surface: #F7F8FF;
--color-border: #D5D7E9;
--color-text: #12142A;
--color-muted: #636780;
--color-primary: #7883E4;
--color-on-primary: #12142A;
--color-accent: #CE6A8E;
--color-on-accent: #12142A;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #12142A;
--color-surface: #1C1F36;
--color-border: #31344B;
--color-text: #EEF0FF;
--color-muted: #898B99;
--color-primary: #8F9CFF;
--color-on-primary: #12142A;
--color-accent: #F78FB3;
--color-on-accent: #12142A;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #8F9CFF | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F78FB3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.00:1 | AAA pass 4.5:1 | |
| Text on surface | 17.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 5.32:1 | AA pass 4.5:1 | |
| Label on accent | 5.24:1 | AA pass 4.5:1 | |
| Primary on background | 3.01:1 | AA Large pass 3:1 | |
| Accent on background | 3.05:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.00:1 | AAA pass 4.5:1 | |
| Text on surface | 14.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.36:1 | AA pass 4.5:1 | |
| Label on primary | 7.22:1 | AAA pass 4.5:1 | |
| Label on accent | 8.23:1 | AAA pass 4.5:1 | |
| Primary on background | 7.22:1 | AAA pass 3:1 | |
| Accent on background | 8.23: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 | #12142A (Text 1) | #8F9CFF (Text 2) | #F78FB3 (Text 3) | #2C3058 (Text 4) | #EEF0FF (Text 5) |
|---|---|---|---|---|---|
| #12142A | Same color | 7.22AAA | 8.23AAA | 1.44— | 16.00AAA |
| #8F9CFF | 7.22AAA | Same color | 1.14— | 5.01AA | 2.22— |
| #F78FB3 | 8.23AAA | 1.14— | Same color | 5.71AA | 1.94— |
| #2C3058 | 1.44— | 5.01AA | 5.71AA | Same color | 11.10AAA |
| #EEF0FF | 16.00AAA | 2.22— | 1.94— | 11.10AAA | Same color |
Shades
Shades and tints (50–950)
