PreviewingGo to this paletteOpen in generator
Code
/* Flash Duo — colorset.net */
:root {
--color-1: #F4F1EC;
--color-2: #6C2BD9;
--color-3: #FFD23F;
--color-4: #D8CCF4;
--color-5: #1C1530;
--color-bg: #F4F1EC;
--color-surface: #FAF8F5;
--color-border: #DDD8D0;
--color-text: #1C1530;
--color-muted: #6D6881;
--color-primary: #6C2BD9;
--color-on-primary: #FFFFFF;
--color-accent: #917300;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #1C1530;
--color-surface: #27203C;
--color-border: #3B374E;
--color-text: #F4F1EC;
--color-muted: #918E8A;
--color-primary: #7F47F2;
--color-on-primary: #FFFFFF;
--color-accent: #FFD23F;
--color-on-accent: #1C1530;
}
}
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 #6C2BD9 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FFD23F | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.54:1 | AAA pass 4.5:1 | |
| Text on surface | 16.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.72:1 | AA pass 4.5:1 | |
| Label on primary | 7.03:1 | AAA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 6.24:1 | AA pass 3:1 | |
| Accent on background | 4.00:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.54:1 | AAA pass 4.5:1 | |
| Text on surface | 13.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.37:1 | AA pass 4.5:1 | |
| Label on primary | 5.14:1 | AA pass 4.5:1 | |
| Label on accent | 12.13:1 | AAA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 12.13: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 | #F4F1EC (Text 1) | #6C2BD9 (Text 2) | #FFD23F (Text 3) | #D8CCF4 (Text 4) | #1C1530 (Text 5) |
|---|---|---|---|---|---|
| #F4F1EC | Same color | 6.24AA | 1.28— | 1.34— | 15.54AAA |
| #6C2BD9 | 6.24AA | Same color | 4.87AA | 4.64AA | 2.49— |
| #FFD23F | 1.28— | 4.87AA | Same color | 1.05— | 12.13AAA |
| #D8CCF4 | 1.34— | 4.64AA | 1.05— | Same color | 11.56AAA |
| #1C1530 | 15.54AAA | 2.49— | 12.13AAA | 11.56AAA | Same color |
Shades
Shades and tints (50–950)
