PreviewingGo to this paletteOpen in generator
Code
/* Dynamic Mix — colorset.net */
:root {
--color-1: #FF4040;
--color-2: #40FF40;
--color-3: #4040FF;
--color-4: #40FFFF;
--color-5: #FFFF40;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D6D7C4;
--color-text: #3E4B81;
--color-muted: #636A83;
--color-primary: #4040FF;
--color-on-primary: #FFFFFF;
--color-accent: #7A7900;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272D42;
--color-text: #F7F9D2;
--color-muted: #8C8D71;
--color-primary: #454DFF;
--color-on-primary: #FFFFFF;
--color-accent: #FFFF40;
--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 | adjusted for contrast · from #40FFFF | adjusted for contrast · from #4040FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4040FF | adjusted for contrast · from #FFFF40 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #4040FF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF4040 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.14:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 6.18:1 | AA pass 4.5:1 | |
| Label on accent | 4.60:1 | AA pass 4.5:1 | |
| Primary on background | 5.76:1 | AA pass 3:1 | |
| Accent on background | 4.29:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.74:1 | AAA pass 4.5:1 | |
| Text on surface | 16.28:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.63:1 | AA pass 4.5:1 | |
| Label on primary | 5.59:1 | AA pass 4.5:1 | |
| Label on accent | 17.92:1 | AAA pass 4.5:1 | |
| Primary on background | 3.43:1 | AA Large pass 3:1 | |
| Accent on background | 17.92: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 | #FF4040 (Text 1) | #40FF40 (Text 2) | #4040FF (Text 3) | #40FFFF (Text 4) | #FFFF40 (Text 5) |
|---|---|---|---|---|---|
| #FF4040 | Same color | 2.57— | 1.78— | 2.80— | 3.24AA Large |
| #40FF40 | 2.57— | Same color | 4.59AA | 1.09— | 1.26— |
| #4040FF | 1.78— | 4.59AA | Same color | 5.00AA | 5.78AA |
| #40FFFF | 2.80— | 1.09— | 5.00AA | Same color | 1.16— |
| #FFFF40 | 3.24AA Large | 1.26— | 5.78AA | 1.16— | Same color |
Shades
Shades and tints (50–950)
